IllegalAccessException in EnvInject plugin - All nodes prevented from connecting

2014-07-31 Thread Eddie Sholl
Hi all, In the last day or so, we've started seeing all of our jenkins nodes getting disconnected, with an exception in the EnvInject plugin area. These nodes have all been stable for several weeks without this issue coming up. The only changes in this recent period are a couple of tweaks to

Error message being displayed on Jenkins website

2014-07-31 Thread Matthew.Webber
When browsing on http://jenkins-ci.org/changelog, I see the following text displayed within the page: warning: unlink(/tmp/cache_lock): No such file or directory in /etc/drupal/6/sites/default/modules/cacherouter/Cache.php on line 128. Maybe someone wants to take a look at that. Matthew

Re: Error message being displayed on Jenkins website

2014-07-31 Thread Daniel Beck
Filed as https://issues.jenkins-ci.org/browse/INFRA-63 On 31.07.2014, at 12:17, matthew.web...@diamond.ac.uk wrote: When browsing on http://jenkins-ci.org/changelog, I see the following text displayed within the page: warning: unlink(/tmp/cache_lock): No such file or directory in

Re: Multiple projects chaining question

2014-07-31 Thread Oliver Wang
The issue is resolved (at least I think) by using ${JENKINS_HOME}/local for across project, across project reference point - where the library headers, libraries, .pc etc. are installed and linked. On Wednesday, July 30, 2014 5:41:17 PM UTC-4, Oliver Wang wrote: Hello all, I am a newbie

Re: How do i pass a build number to a downstream job for jobs that are part of a Build Pipeline

2014-07-31 Thread Eric Wood
Chris: Thanks for the reply. Not sure i fully understood the steps. Can you elaborate? Where do i set a Predefined parameter and are you saying that once the variable is predefined I can merely reference the variable using the ${MYBUILD_NUMBER} in the downstream job? On Wednesday, July 30,

Re: Multiple projects chaining question

2014-07-31 Thread Björn Pedersen
Hi, while this approach certainly works as long as you use just a single host for building, I would look at the artifact managing plugins to manage the generatend libraries (they are the artifacts in your case). In this way you will be able to use more than one build machine as well. Björn

changes to the Jenkins JDK installations through Groovy don't seem to be persisted

2014-07-31 Thread Nico Mommaerts
jdkDesc = Jenkins.instance.getDescriptorByName(hudson.model.JDK); JDK jdk6 = new JDK(JDK6, /usr/lib/jvm/java-6-openjdk-amd64); JDK jdk7 = new JDK(JDK7, /usr/lib/jvm/java-7-openjdk-amd64); jdkDesc.setInstallations(jdk6, jdk7); // this overrides any already existing jdk jdks =

Re: changes to the Jenkins JDK installations through Groovy don't seem to be persisted

2014-07-31 Thread Nico Mommaerts
Ok I found it: Jenkins.instance.save(); does the trick Op donderdag 31 juli 2014 15:28:53 UTC+2 schreef Nico Mommaerts: jdkDesc = Jenkins.instance.getDescriptorByName(hudson.model.JDK); JDK jdk6 = new JDK(JDK6, /usr/lib/jvm/java-6-openjdk-amd64); JDK jdk7 = new JDK(JDK7,

RE: How do i pass a build number to a downstream job for jobs that are part of a Build Pipeline

2014-07-31 Thread Chris_Williams1
Some of our jobs use the following script in a build step to set the build number of the downstream jobs: echo Keep build numbers in pipeline consistent ** C:\Program Files (x86)\Curl\curl.exe -d nextBuildNumber=%BUILD_NUMBER%

Re: How do I get a handle to the job's console output from build variable?

2014-07-31 Thread Slide
It would help if you put the name of the plugin in the email somewhere, that way the person who develops the plugin will have something to key on when looking at all the messages from the mailing list. I don't read all emails on the list, but if something has email-ext in it, I have it flagged so

RE: How do i pass a build number to a downstream job for jobs that are part of a Build Pipeline

2014-07-31 Thread Ng, Jeff
I use the ParameterizedTriggerPluginhttps://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Trigger+Plugin to pass various properties, including build name/number, to downstream jobs. In the upstream job, I have a build step to write the properties to a properties file in the workspace.

Re: Running great on Windows 2003 Server, failing badly on Windows 2008 Server

2014-07-31 Thread Shibani
As a test, I shut down Jenkins and ran the tests directly from the command line. The exact same problem is occurring, so it's obvious this is an issue with this particular server and the way it's allocating memory, and definitely not an issue with Jenkins. Thanks for your help, Shibani On

Re: Share environment variables between jobs

2014-07-31 Thread GregHansen
Archiving the file only works if the parent job completes before triggering the child job. At least in my case, I'm using the Parameterized Trigger plugin as a build step, taking advantage of the built-in joining capability that it gives, and then want to perform some action depending on the

Re: Share environment variables between jobs

2014-07-31 Thread Les Mikesell
On Thu, Jul 31, 2014 at 1:22 PM, GregHansen greg.han...@gigamon.com wrote: It's things like this that make Jenkins awkward to use for complete workflows, where a continuous environment between jobs makes sense. You could probably do it with the build-flow plugin, but given its status and the

Re: Share environment variables between jobs

2014-07-31 Thread GregHansen
A partial solution would be allow build steps to set the values of job-level parameters, which could then be passed by the Parameterized Trigger plugin to the child job. In my case, I would like to do this from within a shell build step. Simple parameter-passing -- View this message in

Re: Share environment variables between jobs

2014-07-31 Thread Les Mikesell
On Thu, Jul 31, 2014 at 1:46 PM, GregHansen greg.han...@gigamon.com wrote: A partial solution would be allow build steps to set the values of job-level parameters, which could then be passed by the Parameterized Trigger plugin to the child job. In my case, I would like to do this from within a

RE: Share environment variables between jobs

2014-07-31 Thread Greg Hansen
I haven't had the time to learn both Groovy and the Jenkins context. Was looking for a plugin or a recipe to copy. -Original Message- From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Les Mikesell Sent: Thursday, July 31, 2014 11:51 AM To:

Re: Share environment variables between jobs

2014-07-31 Thread Les Mikesell
On Thu, Jul 31, 2014 at 1:51 PM, Greg Hansen greg.han...@gigamon.com wrote: I haven't had the time to learn both Groovy and the Jenkins context. Was looking for a plugin or a recipe to copy. Mostly the same here - I think you can do about anything in groovy but you don't get the

RE: Share environment variables between jobs

2014-07-31 Thread GregHansen
Hmmm, the latest version of the Parameterized Trigger plugin (2.25) has this (see the ***): -- This plugin lets you trigger new builds when your build has completed, with various ways of specifying parameters for the new build. You can add multiple configurations: each has a list of projects

RE: Share environment variables between jobs

2014-07-31 Thread GregHansen
Yes! I had to echo all the environment variables into the properties file using the format: echo PARAM1=${PARAM1} myprops.properties (make sure your first echo has instead of , so the file gets initialized) The child build then had all those values!!! -- View this message in context:

Jenkins- Best Practices for Security

2014-07-31 Thread Rahul Harikrishna
Hello Jenkins Users !! I'm a Jenkins Newbie and from a security background... 1. I'm wondering what kind of System-level hardening must be done on Jenkins Masters server instances? Also on the slaves machines ? 2. Can an admin of Jenkins CI get SSH keys for the communication with slaves using

Re: Jenkins- Best Practices for Security

2014-07-31 Thread Stephen Connolly
On Thursday, 31 July 2014, Rahul Harikrishna rahul.harikris...@gmail.com wrote: Hello Jenkins Users !! I'm a Jenkins Newbie and from a security background... 1. I'm wondering what kind of System-level hardening must be done on Jenkins Masters server instances? Also on the slaves machines ?

Email-ext + GitHub Pull Request Builder: Getting empty developers and culprits lists

2014-07-31 Thread James Chao
Hi, I'm currently using the GitHub Pull Request Builder plugin together with the Email-ext plugin. For my post-build email, I'm not able to get emails to be sent to developers and culprits. Requestor and Recipient List (the project default) do work though... Has anyone else run into this?

Re: Email-ext + GitHub Pull Request Builder: Getting empty developers and culprits lists

2014-07-31 Thread Slide
Can you provide a build log with debug mode enabled in the global config for email-ext? Culprits uses Jenkins core to determine who did what, but uses its own stuff for determining developers (looks at the changelist from the SCM for the job). Is this job kicked off by another job that does the

Re: Send e-mail to committers on failure (Git)

2014-07-31 Thread James Chao
Hi, I'm using the GitHub Pull Request Builder plugin, and the email list is emptyI am updated to the latest versions of the various plugins, but it doesn't know. Is anyone else using that plugin and able to get email-ext to work? Related post:

Re: Email-ext + GitHub Pull Request Builder: Getting empty developers and culprits lists

2014-07-31 Thread James Chao
Hi slide, This is kicked off by the Github pull request builder in this job. Here's the output. Thanks. FAILURE: At least one test failed. Build step 'Execute shell' marked build as failure Checking for post-build Performing post-build step Checking if email needs to be generated Email was

Re: Email-ext + GitHub Pull Request Builder: Getting empty developers and culprits lists

2014-07-31 Thread Slide
I'm not familiar with the GitHub Pull Request Builder plugin, does it integrate with the Git plugin at all? If you look in the config.xml for the job, is there anything in the SCM section? The email-ext plugin uses the SCM for the build to determine the developers. On Thu, Jul 31, 2014 at 3:53

Re: Email-ext + GitHub Pull Request Builder: Getting empty developers and culprits lists

2014-07-31 Thread James Chao
Hi slide, I do see this scm section in the config.xml file. Does this look right? scm class=hudson.plugins.git.GitSCM plugin=git@2.2.3 configVersion2/configVersion userRemoteConfigs hudson.plugins.git.UserRemoteConfig refspec+refs/pull/*:refs/remotes/origin/pr/*/refspec

Re: Email-ext + GitHub Pull Request Builder: Getting empty developers and culprits lists

2014-07-31 Thread Slide
Yes, that looks correct. In your email templates, are you adding the change information? If so, does it come out correct? On Thu, Jul 31, 2014 at 6:19 PM, James Chao jamesc...@gmail.com wrote: Hi slide, I do see this scm section in the config.xml file. Does this look right? scm