Re: Run a build concurrently on all slaves?

2013-01-11 Thread Vincent Latombe
Note that matrix job would work but you would need to maintain a static list of nodes. Also, if one node gets stuck (or offline) it would block further executions because the 'master' build would never end. My solution is more flexible, because it only relies on the labels declared on your nodes,

Re: Run a build concurrently on all slaves?

2013-01-11 Thread Vincent Latombe
I don't think matrix build would fit your need. Here is the pattern I applied successfully to run this kind of job. 1. Install node label parameter plugin and trigger parametrized job plugin 2. Define a job to do the work on one node. Define a node parameter on this job, this will allow to decide

Re: getting Exception in Job Import plugin

2013-01-11 Thread Radha Mohan Maheshwari
i am using Jenkins ver. 1.498 and I tried with Jenkins ver. 1.474 also. On Fri, Jan 11, 2013 at 7:41 PM, Clemens wrote: > Hi, which Jenkins Version are you using ? > -- Radha Mohan Maheshwari

Jenkins console gives "Connection refused" when using :ext: for CVSROOT and CVS_RSH=ssh

2013-01-11 Thread Cynsa Bonorris
I'm trying to switch from :pserver: to :ext: and use ssh for secure checkouts. I've set up my keys and am connecting just fine with no password to the cvs server as my Jenkins/cvs user (builder). However, Jenkins is giving me the following error on checkout, though when I paste the cvs command

Git plugin and checking out from a specified point in time

2013-01-11 Thread anthcourtney
Hello all, Does anyone have any pointers on how to configure a job within Jenkins (and probably more specifically, the Git plugin), so that the git checkout corresponds to a point in time. This point in time will be provided as a parameter to the build. Googling around, I have seen many refere

RE: Email-ext plugin. variable substitution in included file ?

2013-01-11 Thread Alex Earl
Yes, this is expected, the file token supports nested content. Sent from my Windows Phone From: chris_willia...@dell.com Sent: 1/11/2013 3:02 PM To: jenkinsci-users@googlegroups.com Subject: Email-ext plugin. variable substitution in included file ? We are using the "${FILE,path}" token to include

Re: Null pointer exception in authenticating against a subversion repository.

2013-01-11 Thread Andrew Bayless
A quick update, I have found a work around to this issue. In the .subversion directory under the Jenkins user's home directory, there is the "servers" file which specifies subversion server specific protocol parameters. I had previously configured this file with a group name and url for my sub

Email-ext plugin. variable substitution in included file ?

2013-01-11 Thread Chris_Williams1
We are using the "${FILE,path}" token to include the contents of a file in the workspace to an email being sent by the Email-ext plugin. We also have a parameter on this particular job (i.e. parameterized build). It appears that if the file being included uses a variable with the same name as

Re: Run a build concurrently on all slaves?

2013-01-11 Thread org.jenkins-ci
On Fri, 11 Jan 2013 21:38:04 +0100 felix schwitzer wrote: > For this we use simply a multi-configuration project. On Fri, 11 Jan 2013 19:35:42 - "KEVIN FLEMING (BLOOMBERG/ 731 LEXIN)" wrote: > This is exactly what Matrix builds are designed for. You define one > job, with some number of axes

Re: How to pass parameters between jobs - quick question

2013-01-11 Thread William Soula
I think job B would see SVN_REVISION not SVN_REVISION_NUMBER because you are setting SVN_REVISION in the post-build section. We use the "triggger/call builds on other projects" for the build step and it works perfectly fine to call job B from job A and echo the predefined parameters passed to i

Re: Run a build concurrently on all slaves?

2013-01-11 Thread felix schwitzer
For this we use simply a multi-configuration project. Regards Felix On 01/11/2013 05:23 PM, org.jenkins...@io7m.com wrote: Hello. I've set up Jenkins to allow me to test code on a wide range of platforms. Essentially the setup is a master node with no executors (it doesn't build code) that onl

RE: How to pass parameters between jobs - quick question

2013-01-11 Thread Stanley, Jason
I ran into this very same problem. It appears (at least with my experience) the only variables passed from Job A -> Job B are the variables predefined by Jenkins. To work around the issue, in my build shell for Job A, I wrote the variable=value into a file and used the “Parameters from propert

How to pass parameters between jobs - quick question

2013-01-11 Thread zw
Hi All We have job A to kick off Job B Job A uses in build section execute shell to get a svn revision number and sets SVN_REVISION. (We understand that there's the option to use "This build is parameterized" String Parameter and set SVN_REVISION value as HEAD, but we have our reasons to not u

Re: Run a build concurrently on all slaves?

2013-01-11 Thread Les Mikesell
On Fri, Jan 11, 2013 at 1:35 PM, KEVIN FLEMING (BLOOMBERG/ 731 LEXIN) wrote: > This is exactly what Matrix builds are designed for. You define one job, with > some number of axes in the matrix, and then corresponding labels on your > nodes (slaves) to execute the spawned jobs. But note that you

matrix job aggregation

2013-01-11 Thread Chris Withers
(no response to this first time round, so trying again) Hi, What's the correct way to do aggregation in matrix jobs? I've configured the email ext plugin to send out emails, and I'd expect either: - one email from the whole multi-config job combining stuff from all the elements in the matri

Re:Run a build concurrently on all slaves?

2013-01-11 Thread KEVIN FLEMING (BLOOMBERG/ 731 LEXIN)
This is exactly what Matrix builds are designed for. You define one job, with some number of axes in the matrix, and then corresponding labels on your nodes (slaves) to execute the spawned jobs. - Original Message - From: jenkinsci-users@googlegroups.com To: jenkinsci-users@googlegroups.

GRADLE_HOME not available on slaves

2013-01-11 Thread morty
On the jenkins master I have configured that gradle should be autoinstalled to: *GRADLE_HOME: /var/jenkins/tools/mygradle* on all slave nodes resulting in the gradle script being located here: /var/jenkins/tools/mygradle/bin/gradle This works fine and my gradle jobs builds on the slave nodes.

Re: Jenkins failed to sync from Perforce due to long file name

2013-01-11 Thread Richard J
> Yes, on Winsows, Perforce uses the Win32 interface to the file system > which is limited to something like a 250 character path length. have > suggested that they use the direct NT interface that allows 32K unicode > chars, but no luck so far.

Re: Re-key successful or not?

2013-01-11 Thread flsobral
I forgot to mention in my original post that I'm running Jenkins as Windows Service on Windows 7 as system user. Fabio. On Friday, January 11, 2013 1:39:50 PM UTC-2, Wolf wrote: > > Same here. > > Errors in the re-keying log like: > > ERROR: Failed to rewrite C:\Program Files\Jenkins\config.xm

Re: Changes since last success in Email Extension Plugin

2013-01-11 Thread Dirk Kuypers
Hi Alex, I feared this answer.;-) OK, so I have to dig into this. Thanks for your hard work on the plugin! Dirk 2013/1/11 Slide > In my opinion the tokens are only useful up to a certain point. My > recommendation to people is to start using the Groovy templates more. You > can interact with

Run a build concurrently on all slaves?

2013-01-11 Thread org.jenkins-ci
Hello. I've set up Jenkins to allow me to test code on a wide range of platforms. Essentially the setup is a master node with no executors (it doesn't build code) that only dispatches jobs to slaves, and a set of slaves (most of which are running in virtual machines and frequently become unavailab

Re: Changes since last success in Email Extension Plugin

2013-01-11 Thread Slide
In my opinion the tokens are only useful up to a certain point. My recommendation to people is to start using the Groovy templates more. You can interact with the Jenkins classes and get pretty much any information you want without having to have a new feature added to the plugin. slide On Fri,

Re: Changes since last success in Email Extension Plugin

2013-01-11 Thread Dirk Kuypers
Hi, as my developers keep asking about this I am re-sending my question. If a long-running test job is started after 2 or more faster compiles went through, I am only getting the changes for the last compile inside the email (with email-extension plugin). What I would like to have instead are the

Maven claims "No compiler is provided in this environment" on XP

2013-01-11 Thread org.jenkins-ci
Hello. I've just configured an XP VM as a slave service. I configured the service to log in as Administrator (in Administrative Tools -> Services). The environment appears to be correctly configured in that JAVA_HOME is set to the location of the installed JDK, and the directory containing the jav

Re: Re-key successful or not?

2013-01-11 Thread Wolf
Same here. Errors in the re-keying log like: ERROR: Failed to rewrite C:\Program Files\Jenkins\config.xml and ERROR: Failed to rewrite C:\Program Files\Jenkins\users\somebody\config.xml Running Jenkins as a Windows Service on Windows 7, 32-bit as the Local System user. Wolf

Re: Jenkins Ant Compile Query

2013-01-11 Thread Justin Mulcahy
Thanks for the reply Chris.I have tried setting the ${source} variable to the path of my class file but Jenkins is still not compiling the class. Should i be putting something else in here? On Wednesday, 9 January 2013 00:21:56 UTC, Christopher Orr wrote: > > On 01/08/2013 11:40 AM, Justin Mul

Re: kicking off a job on a remote Jenkins - quick question

2013-01-11 Thread Clemens
Just a question, are you running any Security Settings on your Server ? My command would only work on a "Not secured" Server. And connected to your Error Message, i would guess you are having your Jenkins secured, am i right ?

Re: kicking off a job on a remote Jenkins - quick question

2013-01-11 Thread Clemens
Sry, go you wrong, my mistake.. Your command should look like this: java -jar jenkins-cli.jar -s http://YOURSERVER:8080 build JOBNAME -p SVN=VALUE While SVN would be a parameter at your job, thats how i call a job with my jenkins-cli.jar and parameters

Re: Issue with Email-Ext plugin-Please help

2013-01-11 Thread Slide
You'll want to read up on Jelly and how to interact with the Jenkins classes to get the information you want and add it to your template. I would recommend using the groovy templates instead as they make interacting with Jenkins classes much easier. slide On Fri, Jan 11, 2013 at 3:47 AM, uma sha

use tags instead of build numbers in URLs

2013-01-11 Thread Brian J. Murrell
Anyone know of any way or plugin that allows the use of tag names in Jenkins URLs rather than build numbers. i.e. if I have a job named "foo", I can get build #10's result for it with: http://jenkins/job/foo/10/ But if I've set a tag for that build as "1.2.4" I'd like to be able to use: http://

Re: kicking off a job on a remote Jenkins - quick question

2013-01-11 Thread Clemens
Hi, you could start your Job via url and transmitting a parameter, which includes your svn revision Number. See Example: YOURSERVER/jobs/JOBNAME/buildWithParameters?PARMNAME=SVNREVISIONNUMBER In case your remote job is parameterized your SVNREVISIONNUMBER will be set as parameter value and is u

RE: JNLP slave no longer works

2013-01-11 Thread Steffen Breitbach
We'll fix this in the next mainline release, and once all the fallout bugs like this are fixed and verified, I'll plan on another LTS release. My apologies for the problems in the mean time. No problem! The workaround using the anonymous user is OK for me in the meantime. :) smime.p7s Des

Re: JNLP slave no longer works

2013-01-11 Thread Kohsuke Kawaguchi
2013/1/11 SBreitbach > The slave.jar from LTS 1.480.2 version has parameters "-auth" and > "-jnlpCredentials". Neither of them seems to work, I will get a "Exception > in thread "main" java.lang.NoClassDefFoundError: > org/apache/commons/codec/binary/Base64" or "java.io.IOException: Failed to > l

RE: JNLP slave no longer works

2013-01-11 Thread Matthew.Webber
But what about when the slave is not installed as a service? I use headless jnlp (https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds#Distributedbuilds-Launchslaveagentheadlessly) in a script that makes sure slave.jar is up to date. It looks like should be able to authenticate with -

Re: JNLP slave no longer works

2013-01-11 Thread Kohsuke Kawaguchi
If your command line is something like "java -jar slave.jar -jnlpUrl http://host/path/to/jnlp";, then the right thing to do is to use the -jnlpCredentials option. But as SBreitBach discovered, due to a missing dependency problem it turns out this doesn't work (Ugh!). This is being fixed now. In th

Re: JNLP slave no longer works

2013-01-11 Thread Kohsuke Kawaguchi
If you want to be able to add slaves without configuring them first on the master, you can use the swarm slave plugin. 2013/1/11 Les Mikesell > On Fri, Jan 11, 2013 at 7:12 AM, Brian J. Murrell > wrote: > >> > >> Fixed by going to Manage Jenkins -> Configure Global Security, and > under Proj

Re: JNLP slave no longer works

2013-01-11 Thread Kohsuke Kawaguchi
Agree with Brian here. Only do it when you are trusting the users of the network. 2013/1/11 Brian J. Murrell > On 13-01-11 05:55 AM, > matthew.web...@diamond.ac.uk wrote: > > > > Fixed by going to Manage Jenkins -> Configure Global Security, and > under Project-based Matrix Authorization Stra

Re: JNLP slave no longer works

2013-01-11 Thread Kohsuke Kawaguchi
Slaves installed as a service stores the secret token information in the startup configuration file, such as /etc/init/jenkins-slave-*.conf (Linux), /System/Library/LaunchDaemons/org.jenkins-ci.slave.*.plist (OS X), or $SLAVE_ROOT/jenkins-slave.xml (Windows). Look for seemingly meaningless hex-enco

Re: getting Exception in Job Import plugin

2013-01-11 Thread Clemens
Hi, which Jenkins Version are you using ?

Re: Build a parameterized build while one or more parameters are empty

2013-01-11 Thread Clemens
Hi agedio, Your Question : "What happens if you leave the option empty" (Created a Test Job.) I just cleared the default value content from the field and the returned value from this parameter was "". (not even a space) The result would be *3.2* if you just clear your parameter fields. Just the

Re: JNLP slave no longer works

2013-01-11 Thread Kohsuke Kawaguchi
Yes, you just need to re-download the JNLP file from the master and overwrite the local copy at the slave. 2013/1/7 Jon Schewe > OK, so if I just keep the jnlp local now instead of always requesting it > on startup, thing will continue to work, correct? > > > On Monday, January 7, 2013, Kohsuke

Re: JNLP slave no longer works

2013-01-11 Thread Brian J. Murrell
On 13-01-11 08:44 AM, Les Mikesell wrote: > > Doesn't the connecting node name already have to be configured in > jenkins Sure. But if anonymous read is allowed, anyone can see the node names. > - and not already connected? Is disconnecting a node really that difficult? You could try attackin

Re: JNLP slave no longer works

2013-01-11 Thread Les Mikesell
On Fri, Jan 11, 2013 at 7:12 AM, Brian J. Murrell wrote: >> >> Fixed by going to Manage Jenkins -> Configure Global Security, and under >> Project-based Matrix Authorization Strategy I had to enable “connect” in the >> “slave” section, for user “Anonymous”. > > IIUC, that's going to leave your

Job runs blocking on previous run of same job -- why?

2013-01-11 Thread Mandeville, Rob
I've been having problems where some of my builds appear to hang between finishing build actions and running the publisher. Server and client are running on Java 1.7 on Red Hat Linux. During these hangs, the slave node being "hung" isn't running anything, nor has file descriptors open to jobs

Re: JNLP slave no longer works

2013-01-11 Thread Brian J. Murrell
On 13-01-11 05:55 AM, matthew.web...@diamond.ac.uk wrote: > > Fixed by going to Manage Jenkins -> Configure Global Security, and under > Project-based Matrix Authorization Strategy I had to enable “connect” in the > “slave” section, for user “Anonymous”. IIUC, that's going to leave your Jenkin

Re: JNLP slave no longer works

2013-01-11 Thread Brian J. Murrell
On 13-01-11 07:58 AM, SBreitbach wrote: > The slave.jar from LTS 1.480.2 version has parameters "-auth" and > "-jnlpCredentials". I discovered that the -auth in 1.498 also doesn't work. I grabbed the packets that the slave was sending to the jenkins server on connect and there is absolutely no a

Re: JNLP slave no longer works

2013-01-11 Thread SBreitbach
The slave.jar from LTS 1.480.2 version has parameters "-auth" and "-jnlpCredentials". Neither of them seems to work, I will get a "Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64" or "java.io.IOException: Failed to load http://bsjenkinsslave03.

gerrit trigger build on push to refs/heads/*?

2013-01-11 Thread Brian J. Murrell
Hi, I wonder if there is any way to configure the gerrit trigger to trigger builds on pushes to refs/heads/* as was as the usual refs/for/*. Cheers, b. signature.asc Description: OpenPGP digital signature

Re: UI Not Showing Job Status

2013-01-11 Thread rhythmicdevil
I saw another thread in here that suggested restarting Jenkins. I followed the suggestion and the problem now appears to be "fixed".

Re: JNLP slave no longer works

2013-01-11 Thread Richard Mortimer
Hi, I managed to fix this fairly simply on my windows slaves (tested on XP, Vista & Win 7). The fix should be similar for Linux slaves but I use a home-cooked script to start those so you'll have to adapt the solution as appropriate. 1 - autheticate as a Jenkins admin in a browser of your ch

Re: JNLP slave no longer works

2013-01-11 Thread stuart . green
Thanks Matthew, I'm a complete newbie with jenkins, I only started at this workplace a week ago and this update landed! Going through my log I certainly had the 403 errors and ticked various anonymous access rights to get it to connect again. I've just got it working after I noticed that it

RE: JNLP slave no longer works

2013-01-11 Thread Matthew.Webber
From a message I sent to the list a few days ago, which worked for at least some people: >>> I was in a slightly different situation (linux, slaves launched manually), but had the 403 as well. Fixed by going to Manage Jenkins -> Configure Global Security, and under Project-based Matrix Author

Re: Issue with Email-Ext plugin-Please help

2013-01-11 Thread uma shankar
Hi Alex, Thank you very much for suggestion. I have used ${JELLY_SCRIPT, template="html"} and getting emails in below format: Build URLhttp://localhost:8080/job/test/14/Project:testDate of build:Fri, 11 Jan 2013 13:28:40 +0530Build duration:0.37 sec *CHANGES* Revision *9* by *user:**(afsda)* e

Re: JNLP slave no longer works

2013-01-11 Thread stuart . green
Thanks for the info, but how is this change applied to a linux slave? On Tuesday, 8 January 2013 02:50:39 UTC, Kohsuke Kawaguchi wrote: > > This is unfortunately a necessary measure. > > See the "Fix" section in > https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2013-01-04

Jenkins takes very long to build after upgrading to 1.480.2

2013-01-11 Thread Ilko Iliev
Hi, we experience very long build times after we've done the upgrade to 1.480.2. Our infrastructure hasn't changed and as far as I can see no any resource issues can be seen (cpu, memory usage, swapping). The build time increased by factor of appr. 3-4 times - a job taking 11 mins before the upgra