Jenkins slave is not installed

2013-12-04 Thread srinath0805
Hi I have installed Jenkins as a master on serverA, when I'm trying to install slave in ServerB it shows me the message "Ping response time is too long or timed out." when I click on launch button it is downloading slave-agent.jar file then I retry it getting below error: [12/05/13 12:05:27] L

Re: Get Build Number in Post Steps System Groovy Script

2013-12-04 Thread Daniel Beck
currentBuild.number is also null? On 05.12.2013, at 02:04, Bill Wonch wrote: > Hi everyone - > > I've got the following code: > > import hudson.model.*; > import hudson.util.*; > > def thr = Thread.currentThread(); > def currentBuild = thr?.executable; > > def buildNumberField = "BUILD_NUMBE

Re: Remote API for 'keep forever' flag?

2013-12-04 Thread Daniel Beck
In /job/foo/123/api/xml, it's the 'keepLog' element. On 05.12.2013, at 01:40, "Canova, Frank" wrote: > Is there a REST API to determine if a build is marked as ‘keep forever’? I > realize we can change the flag through REST, but I don’t see a query to get > its status. > > The background: We

Jenkins Build Process with Slaves

2013-12-04 Thread TigolB
Hi all, Would someone please help me understand how the Master/Slave build process works? Basically I have a build process that compiles four flavors (x86 retail/debug and amd64 retail/debug). So essentially I would have four builds running on four separate machines simultaneously. How do I

Re: How to Install Jenknis API for Python

2013-12-04 Thread JonathanRRogers
On Tuesday, December 3, 2013 6:37:46 PM UTC-5, joshuam...@gmail.com wrote: > > Hello, > > I'm new to Jenkins and use python only to run test scripts on our custom > test executive. We use Python 3.2 and we wrote software to allow python to > communicate with our test executive. I'm trying to

Get Build Number in Post Steps System Groovy Script

2013-12-04 Thread Bill Wonch
Hi everyone - I've got the following code: import hudson.model.*; import hudson.util.*; def thr = Thread.currentThread(); def currentBuild = thr?.executable; def buildNumberField = "BUILD_NUMBER" def resolver = currentBuild.buildVariableResolver def buildNumber = resolver.resolve(buildNumberFie

Remote API for 'keep forever' flag?

2013-12-04 Thread Canova, Frank
Is there a REST API to determine if a build is marked as 'keep forever'? I realize we can change the flag through REST, but I don't see a query to get its status. The background: We have created a custom installation tool that can list & copy builds from Jenkins and install them on remote equip

Re: How to inject environment vars just after the master checkout?

2013-12-04 Thread John Cary
Thanks. Questions embedded. On 12/4/2013 10:35 AM, Mandeville, Rob wrote: We do this all the time. After checking out, run a script builder that generates your environment changes in the form of a properties file. In Unix, you might have lines like: rm -f env.properties touch env.properties

RE: [ANN] Buildflow extensions plugin

2013-12-04 Thread James Nord (jnord)
Hi Domi, Thanks for letting me know, I've update the wiki. 'build-flow-concurrent-extensions' is _currently_ correct. I was going to remove the "build-flow" prefix as it's pretty obvious that you want a build flow extension but haven't yet done so :) /James From: jenkinsci-...@googlegroups.

RE: How to inject environment vars just after the master checkout?

2013-12-04 Thread Mandeville, Rob
We do this all the time. After checking out, run a script builder that generates your environment changes in the form of a properties file. In Unix, you might have lines like: rm -f env.properties touch env.properties echo "BRANCH = `some_command_that_calculates_branch` >> env.properties echo T

Re: How can I set the build description from a parameter?

2013-12-04 Thread Chris Cooper
Excellent, thank you! For future reference, my final solution is really simple: 1) In each job I have a string parameter named "Reason" with a default value of "Manual build". FYI, for each such job I have a matching "Nightly" job that is triggered every midnight-ish, all it does is trigger the

How to inject environment vars just after the master checkout?

2013-12-04 Thread JR Cary
I would like to run a script on master after the SCM checkout, as the script is in the repo, to set an environment var that propagates to all the slaves. It seems that EnvInject cannot do this? Or am I missing something? Thx.JC FYI, the purpose of this is: I have an svn repo into which I c

how to access a private git repository on BitBucket.com

2013-12-04 Thread Thanos Damn
This is driving me crazy for the pass few days. How can i configure Jenksins to connect to my private bitbucket git repo? I think I have configured SSH Credentials correctly but Im getting an error *Failed to connect to repository : Command "ls-remote -h g...@bitbucket.org:ThanosFisherman/hu

Re: Communication problem with slave is not notified by email

2013-12-04 Thread Les Mikesell
On Wed, Dec 4, 2013 at 7:34 AM, Ginga, Dick wrote: > > > I had a problem with a MAC slave that went into sleep mode terminating the > channel. I needed to disable that to keep the slave up. > Macs have a command line program called 'caffeinate' that you can use as a quick-fix for programs that ca

Re: Running daemon processes

2013-12-04 Thread andrea crotti
So well I tried renaming the job removing the spaces (after I noticed that the other jobs didn't have names in) and now it works fine. The script is running in the "Execute shell" block yes. But the thing is that the error comes before my script is executed, when Jenkins is still trying to set up

RE: Communication problem with slave is not notified by email

2013-12-04 Thread Ginga, Dick
I had a problem with a MAC slave that went into sleep mode terminating the channel. I needed to disable that to keep the slave up. From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Rui Fernando Hayashi Sent: Wednesday, December 04, 2013 6:29 AM To: je

Re: Issues installing plugins on XP

2013-12-04 Thread shanz
I'm getting a similar problem - when I visit the manage jenkins page, I get an oops - Could not initialize class hudson.util.jna.Kernel32 Anyone know how to fix this issue? I'm trying jenkins 1.539 and 1.541 (run as a hudson.war windows service). Java 1_07_45 -- You received this message beca

API to know if a plugin is selected in a job configuration

2013-12-04 Thread Bharathi Ramalingam
I'm just wondering if there is any way to find if a plugin is selected in the job configuration. I tried to look through the javadocs and I the nearest one I found was JobProperty. But that also don't provide what I'm looking for. Thanks, -- You received this message because you are subscr

Re: Communication problem with slave is not notified by email

2013-12-04 Thread Rui Fernando Hayashi
I've been having this issue quite frequently :( Maybe the best approach in this case would be to debug the network problem. But I don't have any idea on how to do that. Any help is appreciated. Tks On Tue, Dec 3, 2013 at 9:23 AM, Rui Fernando Hayashi wrote: > I've had some exceptions like this

Re: jenkins configurations query

2013-12-04 Thread Richard Bywater
I'm guessing the problem is that there is no display available for Firefox or Chrome to use. I'd suggest using the XVFB plugin to create a virtual frame buffer which can be used to create a display for Firefox & Chrome to attach too. Richard. On Wed, Dec 4, 2013 at 10:45 PM, Paridhi Mittal < par

jenkins configurations query

2013-12-04 Thread Paridhi Mittal
Hello I am running my selenium webdriver test cases on jenkins using firefox and chromedriver. I am using chromedriver of version 31.0.1650.57 Firefox of versio 25.0 and selenium webdriver version 2.37.0 , httpclient 4.1.1 And jenkins version 1.541. Test cases are unsuccessful on firefox its gi

Re: Build Fails with Failed to install JDK. Exit code=1,603

2013-12-04 Thread Michael Martfel
Found the solution: 1. Go to the URL on your Jenkins master server: http://jenkins-master1:8080/configure#section3 2. Click on "Configuration" on the upper left side of the screen and choose "JDK" 3. Delete all JDK installers which are shown in the JDK section --> "JDK insta

Re: Build Fails with Failed to install JDK. Exit code=1,603

2013-12-04 Thread Michael Martfel
Found the solution: 1. Go to the URL on your Jenkins master server: http://jenkins-master1:8080/configure#section3 2. Click on "Configuration" on the upper left side of the screen and choose "JDK" 3. Delete all JDK installers which are shown in the JDK section --> "JDK insta

RE: How can I set the build description from a parameter?

2013-12-04 Thread Matthew.Webber
Here is the Groovy script I use, which gets the description from the log. You can modify as required to use an environment variable (I think). Matthew Webber // This Groovy script must be run using a Jenkins "Execute system Groovy script" build step // A previous step must write a line in the lo

Disk usage plugin not working

2013-12-04 Thread David Aldrich
Hi We are running Jenkins 1.509.4 LTS on Centos 5 or 6. I have installed the Disk Usage plugin but, when I select 'Jenkins > Disk usage' I get an 'Internet Explorer cannot display the webpage' error. The page also does not display in Firefox. The Disk usage plugin settings are the defaults -

Re: Readonly job parameters

2013-12-04 Thread Ilamparithi
Hi, You probably might have found a solution now. Anyway I had similar requirement recently and found this thread. Later I came across a plugin https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Dynamic+Parameter+Plug-in. Using this plugin you can send a dynamic parameter to the build. It al