Re: Using extended choice parameter in Jenkins

2017-03-19 Thread VikS
Thank you, the script worked.. :) On Saturday, March 11, 2017 at 2:55:52 AM UTC+8, Ioannis Moutsatsos wrote: > > Active Choices requires that the returned value from the script is a list > or a map. Each element then becomes a selectable option. > Assuming that each line of your text file

Re: Declarative pipelines vs scripted

2017-03-19 Thread Nick Le Mouton
Thanks to both of you. I've started converting my pipelines over to declarative. Bill, you're right, the post section seems a lot nicer than the hacky try-catch-finally. Nick On Saturday, March 18, 2017 at 12:56:42 AM UTC+13, Stephen Connolly wrote: > > Go declarative. > > The latest blue

Re: Which agents are used when a pipeline calls multiple downstream freestyle projects

2017-03-19 Thread Stephen Connolly
I thought you were launching freestyle jobs from a pipeline (where this will not work)? If I'd known toyou were doing all in the same pipeline I could have told you this sooner... On Sun 19 Mar 2017 at 16:21, Tony P wrote: > Found the solution wrap the whole thing in

Re: Which agents are used when a pipeline calls multiple downstream freestyle projects

2017-03-19 Thread Tony P
Found the solution wrap the whole thing in a node() block and everything within the node block will run on the same node Cheers On Sunday, March 19, 2017 at 10:47:45 AM UTC+13, Stephen Connolly wrote: > > Downstream jobs will run on any agent matching the label they are > configured for, with

Re: Does 'scm checkout' always give the same result with parallel builds in JenkinsFiles ?

2017-03-19 Thread Mark Waite
It was released as part of git plugin versions git-3.1.0, git-3.0.5, git-3.0.4, git-3.0.3, git-3.0.2, git-3.0.1, git-2.6.5, git-2.6.4, git-2.6.2, and git-2.6.1. Mark Waite On Sun, Mar 19, 2017 at 2:07 AM wrote: > Was this merged already? > Is it safe to use checkout

Re: Does 'scm checkout' always give the same result with parallel builds in JenkinsFiles ?

2017-03-19 Thread guy . israeli
Was this merged already? Is it safe to use checkout scm within for parallel jobs? On Thursday, September 22, 2016 at 6:53:06 AM UTC+3, Mark Waite wrote: > > The intent of the checkout scm step is that it takes a single revision, > and uses that revision for the duration of the job. > >