Re: Can pipelines and stages be nested in a dependency graph? Or is there a better alternative.

2021-02-19 Thread Anil
okay I will try and simulate it by using global variables that the script 
can access.
thanks for your reply

On Friday, February 12, 2021 at 3:01:42 PM UTC-6 Martin Schmude wrote:

> No, pipeline scripts cannot be nested.
>
>
> Anil schrieb am Donnerstag, 11. Februar 2021 um 16:58:20 UTC+1:
>
>> I have a number of tasks and some are dependent on others for completion.
>> If task A is dependent on tasks B and C completing, then B and C will be 
>> child tasks of A.
>> It is also possible that task D is dependent on task B and then we have a 
>> DAG.
>> So they will form a dependency graph (Directed Acyclic Graph)
>> Can I have a pipeline script with nested pipelines and jobs?
>> Or is there a better alternative.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a4a1e474-5cdd-407e-bf61-ea6e88d85379n%40googlegroups.com.


Can pipelines and stages be nested in a dependency graph? Or is there a better alternative.

2021-02-11 Thread Anil
I have a number of tasks and some are dependent on others for completion.
If task A is dependent on tasks B and C completing, then B and C will be 
child tasks of A.
It is also possible that task D is dependent on task B and then we have a 
DAG.
So they will form a dependency graph (Directed Acyclic Graph)
Can I have a pipeline script with nested pipelines and jobs?
Or is there a better alternative.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/96d897cf-35f5-4069-a994-b31396b4eea8n%40googlegroups.com.


Re: no var/jenkins_home folder

2021-02-03 Thread Anil
I tried again. It is very strange.  Now the script  works. I did not  do 
anything differently.


*Started by user jenkins admin*
*Running in Durability level: MAX_SURVIVABILITY*
*[Pipeline] Start of Pipeline*
*[Pipeline] node*
*Running on Jenkins in /var/jenkins_home/workspace/script*
*[Pipeline] {*
*[Pipeline] stage*
*[Pipeline] { (Deploy)*
*[Pipeline] timeout*
*Timeout set to expire in 1 min 0 sec*
*[Pipeline] {*
*[Pipeline] sh*
*+ /var/jenkins_home/scripts/fibonacci.sh 5*
*The Fibonacci series is : *
*0*
*1*
*1*
*2*
*3*
*[Pipeline] }*
*[Pipeline] // timeout*
*[Pipeline] timeout*
*Timeout set to expire in 1 min 0 sec*
*[Pipeline] {*
*[Pipeline] sh*
*+ /var/jenkins_home/scripts/fibonacci.sh 32*
*The Fibonacci series is : *
*0*
*1*
*1*
*2*
*3*
*5*
*8*
*13*
*21*
*34*
*55*
*89*
*144*
*233*

On Wednesday, February 3, 2021 at 10:27:34 PM UTC-6 Anil wrote:

> I am wondering - should I be running the jenkins scripts in the Docker 
> Desktop CLI?
> I noticed there  is a  CLI button and when I click it, I get a shell
>
> *#*
> *# pwd*
> */*
> *# whoami*
> *root*
> *# ls /var*
> *backups  cache  jenkins_home  lib  local  lock  log  mail  opt  run  
> spool  tmp*
> *# ls /var/jenkins_home*
> *config.xml   jenkins.telemetry.Correlator.xml  
> scripts   users*
> *copy_reference_file.log  jobs  
> secret.keywar*
> *hudson.model.UpdateCenter.xmllogs  
> secret.key.not-so-secret  workflow-libs*
> *hudson.plugins.git.GitTool.xml   nodeMonitors.xml  
> secrets*
> *identity.key.enc nodes
>  updates*
> *jenkins.install.UpgradeWizard.state  plugins  
>  userContent*
> *#*
>
>
> But when I open a Windows Terminal and go to the ubuntu terminal, I see  
> *nothing*
>
> There is no /var/jenkins_home folder
>
> *jenkins:~$ cd /var*
> *jenkins:/var$ ls*
> *backups  cache  crash  lib  local  lock  log  mail  opt  run  snap  
> spool  tmp*
>
> On Wednesday, February 3, 2021 at 9:32:57 PM UTC-6 Anil wrote:
>
>> Jenkins 2.263.3 LTS Windows 10 Home Docker Windows Ubuntu
>>
>> On Wednesday, February 3, 2021 at 9:31:49 PM UTC-6 Anil wrote:
>>
>>> running
>>>
>>>
>>> docker run \
>>>  -u jenkins \
>>>  --rm \
>>>  -d \
>>>  -p 8080:8080 \
>>>  -p 5:5 \
>>>  -v /var/run/docker.sock:/var/run/docker.sock \
>>> * -v /home/jenkins:/var/jenkins_home \*
>>>  jenkins/jenkins:lts 
>>>
>>> because when I try to run the script in the tutorial, it fails.
>>>
>>>
>>> *+ /home/jenkins/scripts/fibonacci.sh 5 
>>> /var/jenkins_home/workspace/script@tmp/durable-14129c06/script.sh: 1: 
>>> /var/jenkins_home/workspace/script@tmp/durable-14129c06/script.sh: 
>>> /home/jenkins/scripts/fibonacci.sh: not found*
>>>
>>> There is no /var/jenkins_home folder
>>>
>>> jenkins:~$ cd /var
>>> jenkins:/var$ ls
>>> backups  cache  crash  lib  local  lock  log  mail  opt  run  snap  
>>> spool  tmp
>>>
>>> [image: Capture.JPG]
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/99705157-7800-4fc6-a866-1d24ce640e0fn%40googlegroups.com.


Re: no var/jenkins_home folder

2021-02-03 Thread Anil
I am wondering - should I be running the jenkins scripts in the Docker 
Desktop CLI?
I noticed there  is a  CLI button and when I click it, I get a shell

*#*
*# pwd*
*/*
*# whoami*
*root*
*# ls /var*
*backups  cache  jenkins_home  lib  local  lock  log  mail  opt  run  
spool  tmp*
*# ls /var/jenkins_home*
*config.xml   jenkins.telemetry.Correlator.xml  
scripts   users*
*copy_reference_file.log  jobs  
secret.keywar*
*hudson.model.UpdateCenter.xmllogs  
secret.key.not-so-secret  workflow-libs*
*hudson.plugins.git.GitTool.xml   nodeMonitors.xml  
secrets*
*identity.key.enc nodes
 updates*
*jenkins.install.UpgradeWizard.state  plugins  
 userContent*
*#*


But when I open a Windows Terminal and go to the ubuntu terminal, I see  
*nothing*

There is no /var/jenkins_home folder

*jenkins:~$ cd /var*
*jenkins:/var$ ls*
*backups  cache  crash  lib  local  lock  log  mail  opt  run  snap  spool  
tmp*

On Wednesday, February 3, 2021 at 9:32:57 PM UTC-6 Anil wrote:

> Jenkins 2.263.3 LTS Windows 10 Home Docker Windows Ubuntu
>
> On Wednesday, February 3, 2021 at 9:31:49 PM UTC-6 Anil wrote:
>
>> running
>>
>>
>> docker run \
>>  -u jenkins \
>>  --rm \
>>  -d \
>>  -p 8080:8080 \
>>  -p 5:5 \
>>  -v /var/run/docker.sock:/var/run/docker.sock \
>> * -v /home/jenkins:/var/jenkins_home \*
>>  jenkins/jenkins:lts 
>>
>> because when I try to run the script in the tutorial, it fails.
>>
>>
>> *+ /home/jenkins/scripts/fibonacci.sh 5 
>> /var/jenkins_home/workspace/script@tmp/durable-14129c06/script.sh: 1: 
>> /var/jenkins_home/workspace/script@tmp/durable-14129c06/script.sh: 
>> /home/jenkins/scripts/fibonacci.sh: not found*
>>
>> There is no /var/jenkins_home folder
>>
>> jenkins:~$ cd /var
>> jenkins:/var$ ls
>> backups  cache  crash  lib  local  lock  log  mail  opt  run  snap  
>> spool  tmp
>>
>> [image: Capture.JPG]
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5fdbc3a1-ac46-453b-94c5-fe41a7b1c0a8n%40googlegroups.com.


Re: no var/jenkins_home folder

2021-02-03 Thread Anil
Jenkins 2.263.3 LTS Windows 10 Home Docker Windows Ubuntu

On Wednesday, February 3, 2021 at 9:31:49 PM UTC-6 Anil wrote:

> running
>
>
> docker run \
>  -u jenkins \
>  --rm \
>  -d \
>  -p 8080:8080 \
>  -p 5:5 \
>  -v /var/run/docker.sock:/var/run/docker.sock \
> * -v /home/jenkins:/var/jenkins_home \*
>  jenkins/jenkins:lts 
>
> because when I try to run the script in the tutorial, it fails.
>
>
> *+ /home/jenkins/scripts/fibonacci.sh 5 
> /var/jenkins_home/workspace/script@tmp/durable-14129c06/script.sh: 1: 
> /var/jenkins_home/workspace/script@tmp/durable-14129c06/script.sh: 
> /home/jenkins/scripts/fibonacci.sh: not found*
>
> There is no /var/jenkins_home folder
>
> jenkins:~$ cd /var
> jenkins:/var$ ls
> backups  cache  crash  lib  local  lock  log  mail  opt  run  snap  spool  
> tmp
>
> [image: Capture.JPG]
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/cfcda891-3bc3-4472-8651-29897f666c0en%40googlegroups.com.


no var/jenkins_home folder

2021-02-03 Thread Anil
running


docker run \
 -u jenkins \
 --rm \
 -d \
 -p 8080:8080 \
 -p 5:5 \
 -v /var/run/docker.sock:/var/run/docker.sock \
* -v /home/jenkins:/var/jenkins_home \*
 jenkins/jenkins:lts 

because when I try to run the script in the tutorial, it fails.


*+ /home/jenkins/scripts/fibonacci.sh 5 
/var/jenkins_home/workspace/script@tmp/durable-14129c06/script.sh: 1: 
/var/jenkins_home/workspace/script@tmp/durable-14129c06/script.sh: 
/home/jenkins/scripts/fibonacci.sh: not found*

There is no /var/jenkins_home folder

jenkins:~$ cd /var
jenkins:/var$ ls
backups  cache  crash  lib  local  lock  log  mail  opt  run  snap  spool  
tmp

[image: Capture.JPG]

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e15412a3-22a5-474c-ad0b-0dd3783551e0n%40googlegroups.com.


Re: jenkins web page not launching when run from docker

2021-02-03 Thread Anil
screenshot:

[image: Capture.JPG]

On Wednesday, February 3, 2021 at 3:31:35 PM UTC-6 Anil wrote:

> root:/home/jenkins# docker ps -a
> CONTAINER ID   IMAGE COMMAND  CREATED  
>  STATUS   PORTS
> NAMES
> a0c268c14b94   jenkins/jenkins:lts   "/sbin/tini -- /usr/…"   4 hours ago  
>  Up 4 hours   0.0.0.0:8080->8080/tcp, 0.0.0.0
>
> The dashboard is launching, but things have started to fail.
>
> This part of the command I ran before appears to have failed
>
>
> *-v /home/jenkins:/var/jenkins_home \*
>
> from
>
> docker run \
>  -u jenkins \
>  --rm \
>  -d \
>  -p 8080:8080 \
>  -p 5:5 \
>  -v /var/run/docker.sock:/var/run/docker.sock \
> * -v /home/jenkins:/var/jenkins_home \*
>  jenkins/jenkins:lts 
>
> because when I try to run the script in the tutorial, it fails.
>
>
> *+ /home/jenkins/scripts/fibonacci.sh 5 
> /var/jenkins_home/workspace/script@tmp/durable-14129c06/script.sh: 1: 
> /var/jenkins_home/workspace/script@tmp/durable-14129c06/script.sh: 
> /home/jenkins/scripts/fibonacci.sh: not found*
>
> There is no /var/jenkins_home folder
>
> jenkins:~$ cd /var
> jenkins:/var$ ls
> backups  cache  crash  lib  local  lock  log  mail  opt  run  snap  spool  
> tmp
>
> Any suggestions appreciated...
>
> On Wednesday, February 3, 2021 at 1:03:40 PM UTC-6 iamtejs...@gmail.com 
> wrote:
>
>> Hello, Anil
>> Your previous docker command has created a container and that's using 
>> that 5 port. Remove that container first then rerun docker command 
>> again.
>> *To list the inactive container:*
>> docker ps -a
>> *To rm container:*
>> docker rm 
>>
>> Regards,
>>
>> On Wed, Feb 3, 2021 at 11:39 PM Anil <1drop...@gmail.com> wrote:
>>
>>>
>>> The earlier instructions had:
>>>
>>> *Launching Jenkins can then be accomplished with a simple docker command*
>>> *as the root user (copy/paste to your VM):*
>>>
>>> *  sudo su -*
>>> *  docker run --name jenkins --rm -u root -d -p 8080:8080 -p 5:5 
>>> -v /var/run/docker.sock:/var/run/docker.sock -v 
>>> /home/jenkins:/var/jenkins_home jenkins/jenkins:lts*
>>>
>>>
>>> But I had already installed Docker.
>>>
>>>
>>> *root:~#   docker run --name jenkins --rm -u root -d -p 8080:8080 -p 
>>> 5:5 -v /var/run/docker.sock:/var/run/docker.sock -v 
>>> /home/jenkins:/var/jenkins_home jenkins/jenkins:lts*
>>> *88bd4006e1fbef8faf2d0652f4d56dec12fd1206c24fb2d3c6fa7ee8a8a3008c*
>>> *docker: Error response from daemon: driver failed programming external 
>>> connectivity on endpoint jenkins 
>>> (4cd8f8c2ee5d501f93f830f6932c383b5948ca77520f4ba3757f2dcf30e3d5d2): Bind 
>>> for 0.0.0.0:5 <http://0.0.0.0:5> failed: port is already allocated.*
>>>
>>>
>>> On Wednesday, February 3, 2021 at 9:29:37 AM UTC-6 Anil wrote:
>>>
>>>> In my reply above, I posted the command.
>>>> I think it may have something to do with the filesystem.
>>>> When I cat /home/jenkins/secrets/initialAdminPassword
>>>> it cannot find the file.
>>>> Is there  something I should do to map the drive correctly?
>>>>
>>>> On Tuesday, February 2, 2021 at 9:21:45 PM UTC-6 Mark Waite wrote:
>>>>
>>>>> I think you've mistakenly mapped port 8080 on the Windows computer to 
>>>>> port 5 in the running Docker container.  I see that output if I open 
>>>>> http://localhost:5 on a Docker container started by the Docker 
>>>>> Desktop app on Windows 10 with port 5 mapped to 50.
>>>>>
>>>>> You need to map port 8080 on the Windows computer to port 8080 in the 
>>>>> running Docker container.
>>>>>
>>>>> [image: image.png]
>>>>>
>>>>> Interesting user interface choice of Docker Desktop that they default 
>>>>> to show port 5 as a possible port to map, but by default they do not 
>>>>> show port 8080.  I had to press the "+" character to the right of the row 
>>>>> containing port 5.
>>>>>
>>>>> Mark Waite
>>>>>
>>>>> On Tue, Feb 2, 2021 at 7:05 PM Slide  wrote:
>>>>>
>>>>>> What does your docker command look like?
>>>>>>
>>>>>> On Tue, Feb 2, 2021, 13:43 Anil <1drop...@gmail.com> wrote:
>

Re: jenkins web page not launching when run from docker

2021-02-03 Thread Anil
root:/home/jenkins# docker ps -a
CONTAINER ID   IMAGE COMMAND  CREATED  
 STATUS   PORTS
NAMES
a0c268c14b94   jenkins/jenkins:lts   "/sbin/tini -- /usr/…"   4 hours ago  
 Up 4 hours   0.0.0.0:8080->8080/tcp, 0.0.0.0

The dashboard is launching, but things have started to fail.

This part of the command I ran before appears to have failed


*-v /home/jenkins:/var/jenkins_home \*

from

docker run \
 -u jenkins \
 --rm \
 -d \
 -p 8080:8080 \
 -p 5:5 \
 -v /var/run/docker.sock:/var/run/docker.sock \
* -v /home/jenkins:/var/jenkins_home \*
 jenkins/jenkins:lts 

because when I try to run the script in the tutorial, it fails.


*+ /home/jenkins/scripts/fibonacci.sh 5 
/var/jenkins_home/workspace/script@tmp/durable-14129c06/script.sh: 1: 
/var/jenkins_home/workspace/script@tmp/durable-14129c06/script.sh: 
/home/jenkins/scripts/fibonacci.sh: not found*

There is no /var/jenkins_home folder

jenkins:~$ cd /var
jenkins:/var$ ls
backups  cache  crash  lib  local  lock  log  mail  opt  run  snap  spool  
tmp

Any suggestions appreciated...

On Wednesday, February 3, 2021 at 1:03:40 PM UTC-6 iamtejs...@gmail.com 
wrote:

> Hello, Anil
> Your previous docker command has created a container and that's using that 
> 5 port. Remove that container first then rerun docker command again.
> *To list the inactive container:*
> docker ps -a
> *To rm container:*
> docker rm 
>
> Regards,
>
> On Wed, Feb 3, 2021 at 11:39 PM Anil <1drop...@gmail.com> wrote:
>
>>
>> The earlier instructions had:
>>
>> *Launching Jenkins can then be accomplished with a simple docker command*
>> *as the root user (copy/paste to your VM):*
>>
>> *  sudo su -*
>> *  docker run --name jenkins --rm -u root -d -p 8080:8080 -p 5:5 
>> -v /var/run/docker.sock:/var/run/docker.sock -v 
>> /home/jenkins:/var/jenkins_home jenkins/jenkins:lts*
>>
>>
>> But I had already installed Docker.
>>
>>
>> *root:~#   docker run --name jenkins --rm -u root -d -p 8080:8080 -p 
>> 5:5 -v /var/run/docker.sock:/var/run/docker.sock -v 
>> /home/jenkins:/var/jenkins_home jenkins/jenkins:lts*
>> *88bd4006e1fbef8faf2d0652f4d56dec12fd1206c24fb2d3c6fa7ee8a8a3008c*
>> *docker: Error response from daemon: driver failed programming external 
>> connectivity on endpoint jenkins 
>> (4cd8f8c2ee5d501f93f830f6932c383b5948ca77520f4ba3757f2dcf30e3d5d2): Bind 
>> for 0.0.0.0:5 <http://0.0.0.0:5> failed: port is already allocated.*
>>
>>
>> On Wednesday, February 3, 2021 at 9:29:37 AM UTC-6 Anil wrote:
>>
>>> In my reply above, I posted the command.
>>> I think it may have something to do with the filesystem.
>>> When I cat /home/jenkins/secrets/initialAdminPassword
>>> it cannot find the file.
>>> Is there  something I should do to map the drive correctly?
>>>
>>> On Tuesday, February 2, 2021 at 9:21:45 PM UTC-6 Mark Waite wrote:
>>>
>>>> I think you've mistakenly mapped port 8080 on the Windows computer to 
>>>> port 5 in the running Docker container.  I see that output if I open 
>>>> http://localhost:5 on a Docker container started by the Docker 
>>>> Desktop app on Windows 10 with port 5 mapped to 50.
>>>>
>>>> You need to map port 8080 on the Windows computer to port 8080 in the 
>>>> running Docker container.
>>>>
>>>> [image: image.png]
>>>>
>>>> Interesting user interface choice of Docker Desktop that they default 
>>>> to show port 5 as a possible port to map, but by default they do not 
>>>> show port 8080.  I had to press the "+" character to the right of the row 
>>>> containing port 5.
>>>>
>>>> Mark Waite
>>>>
>>>> On Tue, Feb 2, 2021 at 7:05 PM Slide  wrote:
>>>>
>>>>> What does your docker command look like?
>>>>>
>>>>> On Tue, Feb 2, 2021, 13:43 Anil <1drop...@gmail.com> wrote:
>>>>>
>>>>>> Jenkins 2.263.3 LTS Windows 10 Home Docker Windows Ubuntu 
>>>>>>
>>>>>> I am learning Jenkins and was trying to run it in a docker image.
>>>>>> I started up Docker Desktop and clicked Run on jenkins:lts
>>>>>> However when I go to localhost:8080, this is what I see, and not the 
>>>>>> Jenkins web page.
>>>>>>
>>>>>>
>>>>>> [image: Capture.PNG]
>>>>>>
>>>>>> -- 
>&g

Re: jenkins web page not launching when run from docker

2021-02-03 Thread Anil
It started working. I don't know what fixed it but these are what I tried:

1) In Docker Desktop, reset all data to factory defaults
2) Created ubuntu root password and su - 
3) Turned off experimental Docker feature "cloud enabled".
4) I found the secret admin password in the Console in Docker desktop, *not 
*in the ubuntu shell.

Now I was able to go to localhost:8080 and enter the admin password.

thanks to all who replied!

On Wednesday, February 3, 2021 at 12:09:44 PM UTC-6 Anil wrote:

>
> The earlier instructions had:
>
> *Launching Jenkins can then be accomplished with a simple docker command*
> *as the root user (copy/paste to your VM):*
>
> *  sudo su -*
> *  docker run --name jenkins --rm -u root -d -p 8080:8080 -p 5:5 
> -v /var/run/docker.sock:/var/run/docker.sock -v 
> /home/jenkins:/var/jenkins_home jenkins/jenkins:lts*
>
>
> But I had already installed Docker.
>
>
> *root:~#   docker run --name jenkins --rm -u root -d -p 8080:8080 -p 
> 5:5 -v /var/run/docker.sock:/var/run/docker.sock -v 
> /home/jenkins:/var/jenkins_home jenkins/jenkins:lts*
> *88bd4006e1fbef8faf2d0652f4d56dec12fd1206c24fb2d3c6fa7ee8a8a3008c*
> *docker: Error response from daemon: driver failed programming external 
> connectivity on endpoint jenkins 
> (4cd8f8c2ee5d501f93f830f6932c383b5948ca77520f4ba3757f2dcf30e3d5d2): Bind 
> for 0.0.0.0:5 <http://0.0.0.0:5> failed: port is already allocated.*
>
>
> On Wednesday, February 3, 2021 at 9:29:37 AM UTC-6 Anil wrote:
>
>> In my reply above, I posted the command.
>> I think it may have something to do with the filesystem.
>> When I cat /home/jenkins/secrets/initialAdminPassword
>> it cannot find the file.
>> Is there  something I should do to map the drive correctly?
>>
>> On Tuesday, February 2, 2021 at 9:21:45 PM UTC-6 Mark Waite wrote:
>>
>>> I think you've mistakenly mapped port 8080 on the Windows computer to 
>>> port 5 in the running Docker container.  I see that output if I open 
>>> http://localhost:5 on a Docker container started by the Docker 
>>> Desktop app on Windows 10 with port 5 mapped to 50.
>>>
>>> You need to map port 8080 on the Windows computer to port 8080 in the 
>>> running Docker container.
>>>
>>> [image: image.png]
>>>
>>> Interesting user interface choice of Docker Desktop that they default to 
>>> show port 5 as a possible port to map, but by default they do not show 
>>> port 8080.  I had to press the "+" character to the right of the row 
>>> containing port 5.
>>>
>>> Mark Waite
>>>
>>> On Tue, Feb 2, 2021 at 7:05 PM Slide  wrote:
>>>
>>>> What does your docker command look like?
>>>>
>>>> On Tue, Feb 2, 2021, 13:43 Anil <1drop...@gmail.com> wrote:
>>>>
>>>>> Jenkins 2.263.3 LTS Windows 10 Home Docker Windows Ubuntu 
>>>>>
>>>>> I am learning Jenkins and was trying to run it in a docker image.
>>>>> I started up Docker Desktop and clicked Run on jenkins:lts
>>>>> However when I go to localhost:8080, this is what I see, and not the 
>>>>> Jenkins web page.
>>>>>
>>>>>
>>>>> [image: Capture.PNG]
>>>>>
>>>>> -- 
>>>>> You received this message because you are subscribed to the Google 
>>>>> Groups "Jenkins Users" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>> an email to jenkinsci-use...@googlegroups.com.
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/jenkinsci-users/b3bf430d-c036-400a-8672-4ff858e782ben%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/jenkinsci-users/b3bf430d-c036-400a-8672-4ff858e782ben%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Jenkins Users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to jenkinsci-use...@googlegroups.com.
>>>>
>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVexdjpM37Tg1BObgROYmrnKB-_OXManWGDbmbggyWCyfA%40mail.gmail.com
>>>>  
>>>> <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVexdjpM37Tg1BObgROYmrnKB-_OXManWGDbmbggyWCyfA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/aac08384-f98c-4681-acf7-5b9c5373c45bn%40googlegroups.com.


Re: jenkins web page not launching when run from docker

2021-02-03 Thread Anil

The earlier instructions had:

*Launching Jenkins can then be accomplished with a simple docker command*
*as the root user (copy/paste to your VM):*

*  sudo su -*
*  docker run --name jenkins --rm -u root -d -p 8080:8080 -p 5:5 -v 
/var/run/docker.sock:/var/run/docker.sock -v 
/home/jenkins:/var/jenkins_home jenkins/jenkins:lts*


But I had already installed Docker.


*root:~#   docker run --name jenkins --rm -u root -d -p 8080:8080 -p 
5:5 -v /var/run/docker.sock:/var/run/docker.sock -v 
/home/jenkins:/var/jenkins_home jenkins/jenkins:lts*
*88bd4006e1fbef8faf2d0652f4d56dec12fd1206c24fb2d3c6fa7ee8a8a3008c*
*docker: Error response from daemon: driver failed programming external 
connectivity on endpoint jenkins 
(4cd8f8c2ee5d501f93f830f6932c383b5948ca77520f4ba3757f2dcf30e3d5d2): Bind 
for 0.0.0.0:5 failed: port is already allocated.*


On Wednesday, February 3, 2021 at 9:29:37 AM UTC-6 Anil wrote:

> In my reply above, I posted the command.
> I think it may have something to do with the filesystem.
> When I cat /home/jenkins/secrets/initialAdminPassword
> it cannot find the file.
> Is there  something I should do to map the drive correctly?
>
> On Tuesday, February 2, 2021 at 9:21:45 PM UTC-6 Mark Waite wrote:
>
>> I think you've mistakenly mapped port 8080 on the Windows computer to 
>> port 5 in the running Docker container.  I see that output if I open 
>> http://localhost:5 on a Docker container started by the Docker 
>> Desktop app on Windows 10 with port 5 mapped to 50.
>>
>> You need to map port 8080 on the Windows computer to port 8080 in the 
>> running Docker container.
>>
>> [image: image.png]
>>
>> Interesting user interface choice of Docker Desktop that they default to 
>> show port 5 as a possible port to map, but by default they do not show 
>> port 8080.  I had to press the "+" character to the right of the row 
>> containing port 5.
>>
>> Mark Waite
>>
>> On Tue, Feb 2, 2021 at 7:05 PM Slide  wrote:
>>
>>> What does your docker command look like?
>>>
>>> On Tue, Feb 2, 2021, 13:43 Anil <1drop...@gmail.com> wrote:
>>>
>>>> Jenkins 2.263.3 LTS Windows 10 Home Docker Windows Ubuntu 
>>>>
>>>> I am learning Jenkins and was trying to run it in a docker image.
>>>> I started up Docker Desktop and clicked Run on jenkins:lts
>>>> However when I go to localhost:8080, this is what I see, and not the 
>>>> Jenkins web page.
>>>>
>>>>
>>>> [image: Capture.PNG]
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Jenkins Users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to jenkinsci-use...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/jenkinsci-users/b3bf430d-c036-400a-8672-4ff858e782ben%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/jenkinsci-users/b3bf430d-c036-400a-8672-4ff858e782ben%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Jenkins Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to jenkinsci-use...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVexdjpM37Tg1BObgROYmrnKB-_OXManWGDbmbggyWCyfA%40mail.gmail.com
>>>  
>>> <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVexdjpM37Tg1BObgROYmrnKB-_OXManWGDbmbggyWCyfA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ea09b46a-8dde-4356-9b5f-9a34af04cb44n%40googlegroups.com.


Re: jenkins web page not launching when run from docker

2021-02-03 Thread Anil
In my reply above, I posted the command.
I think it may have something to do with the filesystem.
When I cat /home/jenkins/secrets/initialAdminPassword
it cannot find the file.
Is there  something I should do to map the drive correctly?

On Tuesday, February 2, 2021 at 9:21:45 PM UTC-6 Mark Waite wrote:

> I think you've mistakenly mapped port 8080 on the Windows computer to port 
> 5 in the running Docker container.  I see that output if I open 
> http://localhost:5 on a Docker container started by the Docker 
> Desktop app on Windows 10 with port 5 mapped to 50.
>
> You need to map port 8080 on the Windows computer to port 8080 in the 
> running Docker container.
>
> [image: image.png]
>
> Interesting user interface choice of Docker Desktop that they default to 
> show port 5 as a possible port to map, but by default they do not show 
> port 8080.  I had to press the "+" character to the right of the row 
> containing port 5.
>
> Mark Waite
>
> On Tue, Feb 2, 2021 at 7:05 PM Slide  wrote:
>
>> What does your docker command look like?
>>
>> On Tue, Feb 2, 2021, 13:43 Anil <1drop...@gmail.com> wrote:
>>
>>> Jenkins 2.263.3 LTS Windows 10 Home Docker Windows Ubuntu 
>>>
>>> I am learning Jenkins and was trying to run it in a docker image.
>>> I started up Docker Desktop and clicked Run on jenkins:lts
>>> However when I go to localhost:8080, this is what I see, and not the 
>>> Jenkins web page.
>>>
>>>
>>> [image: Capture.PNG]
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Jenkins Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to jenkinsci-use...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-users/b3bf430d-c036-400a-8672-4ff858e782ben%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/jenkinsci-users/b3bf430d-c036-400a-8672-4ff858e782ben%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-use...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVexdjpM37Tg1BObgROYmrnKB-_OXManWGDbmbggyWCyfA%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVexdjpM37Tg1BObgROYmrnKB-_OXManWGDbmbggyWCyfA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c655c2d9-d827-460d-ae42-bfab467d4667n%40googlegroups.com.


Re: jenkins web page not launching when run from docker

2021-02-03 Thread Anil


In an ubuntu terminal (Windows 10 Home WSL2) I ran the provided code from 
the tutorial (Jenkins Essential Training):
I ran it under root

useradd jenkins -m 
docker run \
 -u jenkins \
 --rm \
 -d \
 -p 8080:8080 \
 -p 5:5 \
 -v /var/run/docker.sock:/var/run/docker.sock \
 -v /home/jenkins:/var/jenkins_home \
 jenkins/jenkins:lts 
cat /home/jenkins/secrets/initialAdminPassword 

I think it may have something to do with the filesystem.
When I cat /home/jenkins/secrets/initialAdminPassword
it cannot find the file.
Is there  something I should do to map the drive?


On Tuesday, February 2, 2021 at 8:05:53 PM UTC-6 slide wrote:

> What does your docker command look like?
>
> On Tue, Feb 2, 2021, 13:43 Anil <1drop...@gmail.com> wrote:
>
>> Jenkins 2.263.3 LTS Windows 10 Home Docker Windows Ubuntu 
>>
>> I am learning Jenkins and was trying to run it in a docker image.
>> I started up Docker Desktop and clicked Run on jenkins:lts
>> However when I go to localhost:8080, this is what I see, and not the 
>> Jenkins web page.
>>
>>
>> [image: Capture.PNG]
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-use...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/b3bf430d-c036-400a-8672-4ff858e782ben%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/b3bf430d-c036-400a-8672-4ff858e782ben%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7b67ac94-64a0-4ff4-a1e2-a5febaf6b4d9n%40googlegroups.com.


jenkins web page not launching when run from docker

2021-02-02 Thread Anil
Jenkins 2.263.3 LTS Windows 10 Home Docker Windows Ubuntu 

I am learning Jenkins and was trying to run it in a docker image.
I started up Docker Desktop and clicked Run on jenkins:lts
However when I go to localhost:8080, this is what I see, and not the 
Jenkins web page.


[image: Capture.PNG]

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b3bf430d-c036-400a-8672-4ff858e782ben%40googlegroups.com.


Dashboard on Jenkins

2020-03-18 Thread Anil Kulkarni
Hi, 

I am looking for a way to display the status/statistics of Jenkins jobs on 
a weekly basis. Here are my requirements: 

1. Execution status interms of Job - Status, Weather, Last Success, Last 
Failure, Last duration..All these are currently accomplished using 
Dashboard View plugin. It works fine. 
2. Apart from these I am also looking for option creating some more columns 
from 
- the shell prompt and add it into a new column along with other 
statistics
- a column with a link to latest job console output

Thanks, 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1d427bbd-07bd-47c6-ba0f-348a9955d9a0%40googlegroups.com.


Re: Failing to update jenkins.war

2018-05-14 Thread Anil Mishra
I am also facing same issue when trying to update the Jenkins to latest 
version 2.121 from 2.118
Please suggest:

java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at sun.net.www.MeteredStream.read(Unknown Source)
at java.io.FilterInputStream.read(Unknown Source)
at 
sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Unknown Source)
at 
sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Unknown Source)
at 
org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:77)
at 
hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1141)
Caused: java.io.IOException: Failed to load 
http://updates.jenkins-ci.org/download/war/2.121/jenkins.war to C:\Program 
Files (x86)\Jenkins\jenkins.war.tmp
at 
hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1146)
Caused: hudson.util.IOException2: Failed to download from 
http://updates.jenkins-ci.org/download/war/2.121/jenkins.war (redirected to: 
http://ftp-chi.osuosl.org/pub/jenkins/war/2.121/jenkins.war)
at 
hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1172)
at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1677)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1651)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at 
hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:112)
 

at java.lang.Thread.run(Unknown Source) 

On Wednesday, April 8, 2015 at 2:06:04 PM UTC+5:30, Niksan wrote:
>
> Confirmed now working, thank you.
>
> On Wednesday, April 8, 2015 at 12:56:16 AM UTC+1, Christopher Orr wrote:
>>
>> This has been fixed: 
>> https://issues.jenkins-ci.org/browse/INFRA-270 
>>
>>
>> On 07/04/15 21:08, Richard Bywater wrote: 
>> > I think I saw mention in another thread that there is an issue with 
>> > 1.608 not being available for download properly yet so, if true, that 
>> > might be the cause of the issue. 
>> > 
>> > Richard 
>> > 
>> > 
>> > On 1:45AM, Wed, 8/04/2015 Niksan > > > wrote: 
>> > 
>> > I'm currently on 1.598 and trying to auto update to 1.608 but it 
>> > stays on pending for jenkins.war for a while with the following 
>> output. 
>> > 
>> > hudson.util.IOException2: Failed to download from 
>> > http://updates.jenkins-ci.org/download/war/1.608/jenkins.war 
>> > (redirected to: 
>> http://archives.jenkins-ci.org/war/1.608/jenkins.war) 
>> >  at 
>> > 
>> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:791)
>>  
>>
>> >  at 
>> > hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1138) 
>> >  at 
>> > hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1116) 
>> >  at java.util.concurrent.Executors$RunnableAdapter.call(Unknown 
>> > Source) 
>> >  at java.util.concurrent.FutureTask$Sync.innerRun(Unknown 
>> Source) 
>> >  at java.util.concurrent.FutureTask.run(Unknown Source) 
>> >  at 
>> > 
>> hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:104)
>>  
>>
>> >  at java.lang.Thread.run(Unknown Source) 
>> > 
>> > Is anyone else seeing this? Also, it's annoying as to try again you 
>> > have to restart Jenkins because you just get the message after the 
>> > failure in Manage Jenkins. 
>> > 
>> > Upgrade to Jenkins 1.608 is in progress or failed 
>> > . 
>> > 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/10cd1d9c-75c2-4232-9522-9674e170206b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Using Jenkins Client API

2016-11-02 Thread Narreddi Anil Kumar Reddy
Hi,

I've the jenkins-client code downloaded from GIT and when I try to 
establish connection to Jenkins server suing the below URL,it's failing 
with exception and not able to connect to jenkins.Does any body have any 
suggestions.

 JenkinsServer jenkinsClient = new 
JenkinsServer(new URI("http://10.8.2.174:8082/login?from=%2Fje";), "admin", 
"admin");
System.out.println("Connected to Jenkins 
server::::"+jenkinsClient.getVersion());

Thanks,
Anil

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8bca2520-eed2-4ac7-828e-bc6e1e1f6b1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Regarding Deploy Plugin

2015-09-24 Thread Anil Kumar
Hi Krishna,

Please check the below screenshot , user is jboss management user and i
have my own ip.
[image: Inline image 1]
Thanks,

On Fri, Sep 25, 2015 at 12:22 PM, Krishna Kumar Tiwari 
wrote:

> Hi Anil ,
>
>
>
> What are the steps you have mentioned in your config section of the job ?
>
> On Wednesday, 23 September 2015 15:42:07 UTC+5:30, Anil wrote:
>>
>> Hi All,
>>
>> I am unable to do deployment to Jboss 6.x eap from jenkins job?
>> <http://stackoverflow.com/questions/32732912/i-am-unable-to-do-deployment-to-jboss-6-x-eap-from-jenkins-job>
>>
>> I am using deploy plugin to do deployment from Jenkins to Jboss 7. I
>> follwed the below steps as mentioned in google group to make it work
>> https://groups.google.com/forum/#!topic/jenkinsci-users/9Ghwuwdebxw
>>
>> But i able to do deployment from Jenkins windows machine to Jboss windows
>> machine. But same is not working from Linux(Jenkins) to Linux(Jboss)
>> machines? After build is success it is not showing any step related to post
>> build actions.
>>
>> channel stopped
>>
>> Finished: SUCCESS
>>
>> Can anyone please help on this? Thanks in advance.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/zVKRnroSTwA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/656f5b1a-e6bb-4e9f-8ac2-353d924e15ad%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/656f5b1a-e6bb-4e9f-8ac2-353d924e15ad%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
With Regards,

Anil G
Cell  No:+91 77998-87575 <http://TEl>
Email: askani...@gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAD_KKkXm039fCYYkrXfmc72Vcj0uyH2JuS-Ytfw9%2BY%2B%2BiTj%3D3g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Regarding Deploy Plugin

2015-09-23 Thread Anil
Hi All,

I am unable to do deployment to Jboss 6.x eap from jenkins job? 


I am using deploy plugin to do deployment from Jenkins to Jboss 7. I 
follwed the below steps as mentioned in google group to make it work
https://groups.google.com/forum/#!topic/jenkinsci-users/9Ghwuwdebxw

But i able to do deployment from Jenkins windows machine to Jboss windows 
machine. But same is not working from Linux(Jenkins) to Linux(Jboss) 
machines? After build is success it is not showing any step related to post 
build actions.

channel stopped

Finished: SUCCESS

Can anyone please help on this? Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c40cb296-4437-44a9-9fd0-9285dbce3da5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Job Name validation based on Job Type.

2015-06-29 Thread Anil Subudhi
I have created the new project type, I would like to validate the job name 
of project type i created.

What i tried:

  1) As it is calling doCheckjobName of Hudson it is not invoking my 
descriptor method doCheckjobName ().

  2) Checked with newInstance() to throw Runtime exception/Failure but 
though it throws exception but it doesn't print the error message in hudson 
context rather simple response HTTP 500 content coming.Am i missing some 
  jelly to configure.

  3) Tried with error.jelly but no luck. 


  I want either it can be done in form validation or on after submit, it 
should flag the message in Error page.

Can any one help on this.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c74e4e82-31c1-48d0-841f-65ae25d53bec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Git client fails to load

2014-01-11 Thread Anil Gunturu
Hello,
Jenkins 1.540-1.1 is failing to install GIT client plugin 
with java-1.8.0-openjdk.x86_64-1:1.8.0.0-0.22.b115.fc20 

Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
at 
com.thoughtworks.xstream.core.util.OrderRetainingMap.entrySet(OrderRetainingMap.java:77)
at java.util.HashMap.putMapEntries(HashMap.java:511)
at java.util.HashMap.putAll(HashMap.java:784)
at 
com.thoughtworks.xstream.core.util.OrderRetainingMap.(OrderRetainingMap.java:36)
at 
com.thoughtworks.xstream.converters.reflection.FieldDictionary.buildMap(FieldDictionary.java:135)
at 
com.thoughtworks.xstream.converters.reflection.FieldDictionary.fieldsFor(FieldDictionary.java:76)
at 
com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:127)
at 
hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:143)
at 
hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:102)
at 
com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
at 
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at 
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
at 
com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82)
at 
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
at com.thoughtworks.xstream.XStream.marshal(XStream.java:898)
at com.thoughtworks.xstream.XStream.marshal(XStream.java:887)
at com.thoughtworks.xstream.XStream.toXML(XStream.java:860)
at hudson.XmlFile.write(XmlFile.java:183)
at hudson.model.Descriptor.save(Descriptor.java:758)
at hudson.plugins.git.GitTool.onLoaded(GitTool.java:106)

With java-1.7.0-openjdk.x86_64-1:1.7.0.60-2.4.3.0.fc20 the jvm is crashing.
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGBUS (0x7) at pc=0x7f2fc58130b4, pid=220445, tid=139843147532032
#
# JRE version: OpenJDK Runtime Environment (7.0_45-b15) (build 
1.7.0_45-mockbuild_2013_10_17_16_46-b00)
# Java VM: OpenJDK 64-Bit Server VM (24.45-b08 mixed mode linux-amd64 
compressed oops)
# Problematic frame:
# V  [libjvm.so+0x5f20b4]  JNI_GetCreatedJavaVMs+0x1494
#
# Core dump written. Default location: /var/cache/jenkins/core or 
core.220445
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
#

---  T H R E A D  ---

Current thread (0x7f2fc001b000):
[error occurred during error reporting (printing current thread), id 0x7]

siginfo:si_signo=SIGBUS: si_errno=0, si_code=2 (BUS_ADRERR), 
si_addr=0x000408b0d898

Registers:
RAX=0x000408b0d888, RBX=0x7f2fc521ebb0, RCX=0x0002, 
RDX=0x7f2fc521eb78
RSP=0x7f2fc521eb30, RBP=0x7f2fc521eb50, RSI=0x7f2fc03fb5b8, 
RDI=0x7f2fc521ebb0
R8 =0x7f2fc5fb8ea0, R9 =0x7f2fc5220700, R10=0x7f2f726e333a, 
R11=0x7f2fc58110c0
R12=0x7f2fc521eb78, R13=0x7f2fc03fb5b8, R14=0x7f2fc521ebb0, 
R15=0x
RIP=0x7f2fc58130b4, EFLAGS=0x00010206, 
CSGSFS=0x0033, ERR=0x0004
  TRAPNO=0x000e

Just wondering if this is a known or if there is a work around for this?

Thanks,

-Anil

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.