Thanks! I will give this a try

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of 
matthew.web...@diamond.ac.uk
Sent: Wednesday, September 25, 2013 9:35 AM
To: jenkinsci-users@googlegroups.com
Subject: RE: Setting Keep Forever

Use https://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+Plugin to 
test the release parameter, conditionally run a shell script that does 
something like:
   java -jar /path/to/jenkins-cli.jar -s http://jenkins:8080/ keep-build 
<jobname> <jobnumber>

You need to sort out authentication for the jenkins-cli.jar, and also I'm not 
sure whether you can mark a still-running job as "keep forever" (we use this, 
but for a slightly different case).

Matthew Webber

From: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com> 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Ginga, Dick
Sent: 25 September 2013 13:57
To: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>
Subject: Setting Keep Forever

Is there a build step available that can mark the current build as Keep 
Forever? I have a core build job and when it builds a "Release" build based on 
a parameter, I want that one to stay forever.




--

This e-mail and any attachments may contain confidential, copyright and or 
privileged material, and are for the use of the intended addressee only. If you 
are not the intended addressee or an authorised recipient of the addressee 
please notify us of receipt by returning the e-mail and do not use, copy, 
retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not 
necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments 
are free from viruses and we cannot accept liability for any damage which you 
may sustain as a result of software viruses which may be transmitted in or with 
the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and 
Wales with its registered office at Diamond House, Harwell Science and 
Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom


--
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 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to