Build.CMD <- your normal build command SET SAVEEC=%ERRORLEVEL% Python startdownstreamjobusingpythonjenkins.py EXIT %SAVEEC%
-----Original Message----- From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Chris Withers Sent: Friday, January 25, 2013 11:05 AM To: jenkinsci-users@googlegroups.com Cc: Merrow, Frank Subject: Re: parameterizing which downstream jobs to build On 25/01/2013 16:27, Merrow, Frank wrote: >> I'd like to have a job do something and then kick off some downstream >> jobs, but I'd like to make some choices in the job to decide *which* >> downstream jobs to kick off. >> >> How can I do that? > > I see other solutions have been offered, but if you needs are complex enough > . . . google "python Jenkins". > > It would allow you to write a Python Script to make that decision as part of > the job run. How so? Can you point me to a short example as I can't think of a way to change the triggered downstream jobs from a build step on post-build action... cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk