Re: Build Flow Plugin - reporting capability

2013-08-06 Thread nicolas de loof
you probably can use jenkins REST API to retrieve the list of executed jobs from a build flow execution, not sure yet 2013/8/6 Bob Bick > Hi, > > ** ** > > The Jenkins Build Flow Plugin is replacing our “massive” home grown build > system. > > ** ** > > A couple of times a year, our bu

Re: User account considered for execution

2013-08-06 Thread Raghava Rudrakanth P V
Hi Richard, Thanks for reply, I am bit confused again. - Consider I Logged-In to Jenkins with User account "Test1" (this account is not existed on network). - When job is called, batch script will create folders & remove. But "Test1" doesn't have permissions (this user itself not existed on the sys

Re: User account considered for execution

2013-08-06 Thread Richard Bywater
If you are referring to which user will the shell execution happen under, it will be the user which Jenkins is running as. Richard. On Wed, Aug 7, 2013 at 4:32 PM, Raghava Rudrakanth P V < potturu.ru...@gmail.com> wrote: > Hi Team, > I am new user of Jenkins and have a question. > > 1. I create

Re: User account considered for execution

2013-08-06 Thread bala nageswar Chadalavada
login user no need to match with enterprise user On Wed, Aug 7, 2013 at 10:02 AM, Raghava Rudrakanth P V < potturu.ru...@gmail.com> wrote: > Hi Team, > I am new user of Jenkins and have a question. > > 1. I created job which executes the shell script. > 2. Configured users using Jenkins own dat

Re: Is there a way to make "discard old builds" happen right now?

2013-08-06 Thread Richard Bywater
Interesting - do they get cleaned up under normal circumstances? (i.e. when a normal discard is done) Richard. On Wed, Aug 7, 2013 at 4:24 PM, David Vree wrote: > This worked for me except for one thing. In a multi-module Maven project > the child modules still have all their builds on the fi

User account considered for execution

2013-08-06 Thread Raghava Rudrakanth P V
Hi Team, I am new user of Jenkins and have a question. 1. I created job which executes the shell script. 2. Configured users using Jenkins own database and was able to login to Jenkins and execute the job. Now when the shell execution is happening which User is considered for execution?

Re: Is there a way to make "discard old builds" happen right now?

2013-08-06 Thread David Vree
This worked for me except for one thing. In a multi-module Maven project the child modules still have all their builds on the filesystem, even though they are gone in the UI. On Friday, October 7, 2011 6:58:50 PM UTC-4, jdhein wrote: > > > > On Oct 7, 4:11 am, Christopher Orr wrote: > > On 06

Re: Best way to get have Jenkins use OpenJDK on Ubuntu 12.04 Server

2013-08-06 Thread Richard Bywater
Yeah from what I can see, you might need to compile it and package it yourself :o Here's a link that may help if you haven't already seen it... http://gleamynode.net/articles/2296/ Richard. On Wed, Aug 7, 2013 at 3:21 PM, David Vree wrote: > omg!! - you have to uncheck the "Install automatica

Re: Best way to get have Jenkins use OpenJDK on Ubuntu 12.04 Server

2013-08-06 Thread David Vree
omg!! - you have to uncheck the "Install automatically" boxand then you can enter the JAVA_HOME. Doh! That answers part two of my question. Now I just need to find OpenJDK 7 JDK/JRE Ubuntu zip files. On Tuesday, August 6, 2013 11:11:47 PM UTC-4, Richard Bywater wrote: > > Assuming that yo

Re: Best way to get have Jenkins use OpenJDK on Ubuntu 12.04 Server

2013-08-06 Thread Richard Bywater
Assuming that you can get a JAVA_HOME per version (can't help with that one at the moment I'm afraid), then I think you'll need to set up each version in the Manage Jenkins / Configure System (look under JDK to find the JDK entries). You can then either stick the JAVA_HOME for each version in on t

Best way to get have Jenkins use OpenJDK on Ubuntu 12.04 Server

2013-08-06 Thread David Vree
I have a Jenkins server that has been running well with various versions of the Sun Java 7 JDK for a while now, although I am not that familiar with Jenkins. However, my project would also like to officially support OpenJDK now. I'd like to install and configure jobs to use multiple specific v

Re: maven release plugin and multi-module releases with Sonar

2013-08-06 Thread Jeff
If it helps...here is the Jenkins console output from the failed release. I've removed much of the nitty gritty details until the end portion that fails. Hopefully it makes sense. In all steps, the reactor build order is: *apps-thor --> thor-models --> thor-service-wrapper --> thor-web*. Howeve

Re: Checkstyle apparently totally broken

2013-08-06 Thread fREW Schmidt
Right, I have not instaled Maven, though I'll try it tomorrow and see if it fixes the problem I guess. On Tue, Aug 06, 2013 at 09:37:46PM +0200, Daniel Beck wrote: > According to the wiki [1, 2], Maven plugin is an _optional_ dependency of > both Checkstyle and its (only, besides Ant) mandatory d

Re: hopefully simple pipeline question

2013-08-06 Thread Daniel Beck
You could use the parameterized trigger plugin and use the build step as the first action in the upstream build. That way, B will be queued before A polls SCM again. If necessary, add a Quiet Period to A in its advanced project options for the time it takes A to check out from SCM (or rather, t

trigger a build ONLY when there has been a M2_RELEASEBUILD

2013-08-06 Thread Maven User
I think I may be over engineering this one a bit (headed to post-build groovy scripting hell), but I was wondering - is there an easy way to trigger another build (with two parameters from the release plugin) when a maven release has been triggered? For instance, when you run the maven release

maven release plugin and multi-module releases with Sonar

2013-08-06 Thread Jeff
I have a post-build action that runs Sonar analysis on our projects. I can't say that I know whether this worked before since we have very few multi-module projects but after the release:perform phase when doing a Maven release, it updates and checks in the POMs with the next DEV version and then

hopefully simple pipeline question

2013-08-06 Thread Mishael Kim
Hi All, Job A is a build job that is triggered by SCM changes, and Job B is a downstream test job configured to use the same node and same workspace. If Job A #1 is currently running, and Job A receives another trigger from SCM (Job A #2), how do I ensure that Job B #1 (which hasn't been triggere

Re: Trigger a downstream job which is on another Jenkins instance

2013-08-06 Thread Jerry
You might have an easier time parsing the XML results and using those in an Ant script. Ant works with XML much better than it does with JSON. http://ant.apache.org/manual/Tasks/xmlproperty.html -- Jerry On Tuesday, August 6, 2013 11:15:17 AM UTC-4, Stephen Tunney wrote: > > I'm trying to use

Build Flow Plugin - reporting capability

2013-08-06 Thread Bob Bick
Hi, The Jenkins Build Flow Plugin is replacing our "massive" home grown build system. A couple of times a year, our build team will create a Build Flow job from a template to perform the "massive" build which can last for several days. The build team will execute the Build Flow job until all s

Re: Checkstyle apparently totally broken

2013-08-06 Thread Daniel Beck
According to the wiki [1, 2], Maven plugin is an _optional_ dependency of both Checkstyle and its (only, besides Ant) mandatory dependency, Analysis Core. Is this information correct? So far, JENKINS-18922/19000 seemed to only happen when missing mandatory dependencies, like jobConfigHistory ->

Re: Automatically creating a job inside a folder

2013-08-06 Thread Jacob Schlather
Very strange true was in my template. I had made a jenkins job as my template and copied that config.xml for my template. Changing that to false fixed the issue. Perhaps the project was disabled at the time I copied it without realizing. Thanks a lot. On Tuesday, August 6, 2013 3:10:50 PM U

Re: Automatically creating a job inside a folder

2013-08-06 Thread Daniel Beck
Can't think of a reason other than possibly 'true' in your template. Are your template file and the config.xml of the created job different in any way? What happens when you create a new freestyle job using the UI, get its config.xml after it's saved, and post that? Still disabled? On 06.08.2

Re: Cancel a Queue via Jenkins API

2013-08-06 Thread Daniel Beck
Send a POST request. https://en.wikipedia.org/wiki/POST_%28HTTP%29 How this works depends on how you send the requests in the first place. Example using the `curl` command line program: curl --data '' 'http://jenkins/queue/cancelItem?id=65' `--data` causes the request to be sent as POST, '

Re: Automatically creating a job inside a folder

2013-08-06 Thread Jacob Schlather
Great. That worked. Do you by chance know why my jobs would spawn as disabled rather than enabled? On Tuesday, August 6, 2013 2:59:18 PM UTC-4, Daniel Beck wrote: > > Try http://jenkins/job/foldername/createItem. > > On 06.08.2013, at 17:17, Jacob Schlather > > wrote: > > > I'm working on a

Re: Automatically creating a job inside a folder

2013-08-06 Thread Daniel Beck
Try http://jenkins/job/foldername/createItem. On 06.08.2013, at 17:17, Jacob Schlather wrote: > I'm working on a script right now to create a new job whenever a new branch > is added to our git repo. I have the python code that will post a job, but I > would like to post a job inside a folder

Cancel a Queue via Jenkins API

2013-08-06 Thread tiago fernandez
Hello, I want to cancel a queue item in a Job that has permissions set. I have tried for example to cancel a queue item with ID 65 (I get the ID from the Queue Api: queue/api/json?pretty=true): http:///queue/cancelItem?id=65 or using the token that job has set: http:///queue/cancelItem?tok

Re: Automatically creating a job inside a folder

2013-08-06 Thread Jacob Schlather
It's actually a folder plugin offered through cloudbees, which I hadn't realized prior to posting this question. Looking at the documentation for it there probably isn't the available functionality to do what I want it to do. Your view suggestion is a good alternative though. Thank you. On Tues

Re: Checkstyle apparently totally broken

2013-08-06 Thread Ulli Hafner
Is your maven plugin installed and enabled? Am 06.08.2013 um 15:06 schrieb fREW Schmidt : > Hey guys, > > All of my projects are showing stack traces on the Post-build Actions. > If I uninstall Checkstyle the problem goes away. Here is the Stack > trace: > > javax.servlet.ServletException: org

Re: Automatically creating a job inside a folder

2013-08-06 Thread Gareth Bowles
By "folder", do you mean a view created with the View plugin ? If so, you can use a regex in the view definition that selects jobs by a substring in their name, as there will be no need to do anything extra in your script. -- You received this message because you are subscribed to the Google

incremental push of JUnit test results to Jenkins

2013-08-06 Thread jaziniho
Hi, I'm looking to find if there is any existing method for incrementally pushing Junit results to Jenkins. For example: A test suite is started, which is described by a JUnit Test Report. As each test case is run, it posts the results of the test back to Jenkins. (Perhaps via REST or some othe

Re: email-ext plugin

2013-08-06 Thread Slide
You need to use the SCRIPT token and put the script into a file in the email-templates directory under $JENKINS_HOME. You can't put groovy directly in the field. slide On Tue, Aug 6, 2013 at 12:16 AM, Stijn Deroo-Van Maele < stijn.deroovanma...@gmail.com> wrote: > Hi, > > I want to use a groov

Automatically creating a job inside a folder

2013-08-06 Thread Jacob Schlather
I'm working on a script right now to create a new job whenever a new branch is added to our git repo. I have the python code that will post a job, but I would like to post a job inside a folder because our Jenkins CI is already fairly cluttered at the moment due to the large number of projects

Re: Trigger a downstream job which is on another Jenkins instance

2013-08-06 Thread Stephen Tunney
I'm trying to use the URLTrigger. I am able to successfully parse the JSON results and get the build number, SCC change number and result out of the JSON http response. My question is this: How to I access these parsed values in my Ant script? On Sunday, 22 April 2012 11:28:30 UTC-4, Steven wr

"Archiving artifacts" can hang when used with Naginator

2013-08-06 Thread Matthew.Webber
If you use the Naginator plugin, and also archive artifacts, you might want to look at a ticket I've just opened: https://issues.jenkins-ci.org/browse/JENKINS-19071 The ticket describes how the Naginator plugin can cause archiving to hang under certain circumstances. Since there seem to be a nu

Checkstyle apparently totally broken

2013-08-06 Thread fREW Schmidt
Hey guys, All of my projects are showing stack traces on the Post-build Actions. If I uninstall Checkstyle the problem goes away. Here is the Stack trace: javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-1.526.j

email-ext plugin

2013-08-06 Thread Stijn Deroo-Van Maele
Hi, I want to use a groovy script in the email-ext plugin, but when I put this in the Default Subject field: $DEFAULT_SUBJECT <% def tr = build.testResultAction; if (tr?.failCount) { %>(${tr?.failCount} failures ${tr?.failureDiffString}) <% } %> In my mail, the groovy code is not interpreted and