RE: Regular expression for conditional build step?

2015-12-04 Thread David Aldrich
Hi I’m still struggling with this. My workspace is: C:\Jenkins\workspace\VS2010_all_branches_and_trunk\trunk My condition for a build step is: Expression: .*trunk.* Label: ${ENV,VAR=WORKSPACE} So the build step should execute but it doesn’t:

PHP deployment - Synchronize souces

2015-12-04 Thread Fabricio De Marchi
Hi All, Considering a simple scenario: A PHP project in SVN, checkout and deploy it to several App servers running Apache (everything under Linux). Considering that with SVN you can remove/delete sources in some situations, what would be a best practice to ensure the build/deploy process would

Re: Get job schedule from API

2015-12-04 Thread cchapman
Thanks Victor but I'm not trying to "schedule" a build. I want a way to access the recurring schedule of the job from the API (i.e. The "0 0 * * *" in the picture below). On Friday,

Re: Get job schedule from API

2015-12-04 Thread Victor Martinez
https://YOUR_JENKINS_URL/job/YOUR_JOB/api/ Look at the Perform a build section Cheers On Friday, 4 December 2015 15:35:04 UTC+1, ccha...@kinaxis.com wrote: > > Is there a way to get the schedule for a job from the API? I can't find > it anywhere. :( > > Thanks, > Clint > -- You received

Re: Deleting Builds from Build Queue when Superseded By Newer Patchsets

2015-12-04 Thread James Pascoe
Hi Daniel, Thanks - that's a perfect starting point - much appreciated :-) ! I'll look at extending it to scan through the Gerrit patchset numbers and let you know how it goes. Thanks again and have a good weekend, James On 4 December 2015 at 14:56, Daniel Beck wrote: >

Re: Official Jenkins Training

2015-12-04 Thread Jorge Peña Cotarelo
Hi Craig, thank you for replying. The purpose of receiving training is, besides receiving a proper course which makes sense from the begginning to the end, have also training materials which I can collect, and compose a mini Jenkins training for Developers / QA / Project managers. I have been

Re: Deleting Builds from Build Queue when Superseded By Newer Patchsets

2015-12-04 Thread Daniel Beck
Someone on IRC recently wanted to limit the number of queue items for a job, so I wrote: https://github.com/daniel-beck/fixed-fifo-queue-plugin Could be close enough to what you need. Completely unsupported. On 04.12.2015, at 15:48, James Pascoe wrote: > Hi

Re: Get API token using API

2015-12-04 Thread cchapman
Thanks Chris. Is there a reason not to show an authenticated user their token in the API? Regards, Clint On Tuesday, December 1, 2015 at 7:30:40 PM UTC-5, Christopher Orr wrote: > > On 30/11/15 16:51, ccha...@kinaxis.com wrote: > > Is it possible to get the API token using the API after

RE: Regular expression for conditional build step?

2015-12-04 Thread Matthew.Webber
My jobs have something like ${ENV,var="GDA_squish_job_to_trigger"}/ Note var is in lower case, and the quote surrounding the variable name Matthew Webber From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of David Aldrich Sent: 04 December 2015 09:07 To:

Get job schedule from API

2015-12-04 Thread cchapman
Is there a way to get the schedule for a job from the API? I can't find it anywhere. :( Thanks, Clint -- 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

Deleting Builds from Build Queue when Superseded By Newer Patchsets

2015-12-04 Thread James Pascoe
Hi Everybody, I have been using Jenkins v1.617 to automatically run validation tests on three hardware platforms. So far, Jenkins has been very well received and I like it a lot. I have a series of 'builder' jobs which are triggered with the Gerrit trigger plugin (v 2.13.0). I use the Git

RE: Regular expression for conditional build step?

2015-12-04 Thread David Aldrich
Hi Matthew Thanks very much. I didn’t notice that I was using the wrong case. ${ENV,var="WORKSPACE"} works. Best regards David -- 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

Re: Deleting Builds from Build Queue when Superseded By Newer Patchsets

2015-12-04 Thread James Pascoe
Hi Baptiste, Ah - thanks - yes, it looks like it was added in 2.14 and we are still using 2.13 :-) ! Thanks, I'll upgrade and try it. Have a good weekend, James On 4 December 2015 at 16:58, Baptiste Mathus wrote: > Pretty sure the Gerrit trigger has that very option, that

Can't login or logout

2015-12-04 Thread Kopax Anderson
I am running jenkins inside docker using `FROM jenkins:1.625.1` I have mounted theses volumes that : - /var/run/docker.sock:/var/run/docker.sock - /usr/bin/docker:/usr/bin/docker - /usr/lib/x86_64-linux-gnu/libapparmor.so.1:/lib/x86_64-linux-gnu/libapparmor.so.1 -

Re: PHP deployment - Synchronize souces

2015-12-04 Thread Baptiste Mathus
Not really a Jenkins question at first IMO. Yeah, rsync would work I guess. But IIUC your needs then what you want to use is a configuration management tool to configure and deploy you app where it has to be: Ansible, Puppet, Chef, you name it. Jenkins could in that case responsible for handling

Re: Deleting Builds from Build Queue when Superseded By Newer Patchsets

2015-12-04 Thread Baptiste Mathus
Pretty sure the Gerrit trigger has that very option, that is stopping previous build when a new patchset is submitted. HTH Le 4 déc. 2015 3:48 PM, "James Pascoe" a écrit : > Hi Everybody, > > I have been using Jenkins v1.617 to automatically run validation tests on >

Re: Combination triggers possible?

2015-12-04 Thread Baptiste Mathus
Might be an use case for workflow, the advantage being also that it should let you avoid having a slave locked just to sleep. I think that if you set a sleep outside a node block in a workflow script you should get that. Cheers Le 4 déc. 2015 1:32 AM, a écrit : > Thanks

Can't login or logout

2015-12-04 Thread Kopax Anderson
I am running jenkins inside docker using `FROM jenkins:1.625.1` I have mounted theses volumes that : - /var/run/docker.sock:/var/run/docker.sock - /usr/bin/docker:/usr/bin/docker - /usr/lib/x86_64-linux-gnu/libapparmor.so.1:/lib/x86_64-linux-gnu/libapparmor.so.1 -

Re: Forking a process in Workflow

2015-12-04 Thread Baptiste Mathus
Hi, Did you try to surround your variable with quotes? Might be a bit tricky sometimes because of the multiple interpolations. Something like: sh "mvn blah Dpassword='$password_param' " HTH Le 3 déc. 2015 8:36 PM, "Mark Bidewell" a écrit : > In case anyone sees this, I

Re: Get job schedule from API

2015-12-04 Thread cchapman
Thanks Chris. My back up was to get the html page and get it from there. Getting the config.xml file is a better option. Thanks again, Clint On Friday, December 4, 2015 at 1:45:44 PM UTC-5, Christopher Orr wrote: > > Only part of the job config is exposed in the API. For example, SCM > info

Request for Comment: Jenkins Code of Conduct

2015-12-04 Thread R. Tyler Croy
As the Jenkins community has grown, it has become clear that we need to write down what behaviors we welcome in our community, but more importantly, what is not welcome. I would like to invite you all to review and provide feedback on the following wiki page:

Re: Get job schedule from API

2015-12-04 Thread Christopher Orr
Only part of the job config is exposed in the API. For example, SCM info is there, but not build triggers. I imagine you could file a feature request for that :) Though there is at least a way of programmatically grabbing the job config, so if you're authenticated, you can parse the XML, e.g.: