I put this as a post-build step at the end of each “Release” job From: [email protected] [mailto:[email protected]] On Behalf Of James Green Sent: Friday, August 15, 2014 9:14 AM To: [email protected] Subject: Re: Discard old builds - limit to snapshots?
Where is this put? What I want to avoid is each project needing the same instruction - it should be policy that developers have no control over (they shouldn't). On 15 August 2014 13:43, Ginga, Dick <[email protected]<mailto:[email protected]>> wrote: I use the API at the end of builds. I test a parameter called BUILD_TYPE then: For Windows: echo @ echo @ Mark this build as keep forever echo @ java -jar C:\Tools\BuildTools\jenkins-cli.jar -s http://jenkinsserver.xxx.xxx:8082/ keep-build %JOB_NAME% %BUILD_NUMBER% From: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] On Behalf Of James Green Sent: Friday, August 15, 2014 7:20 AM To: [email protected]<mailto:[email protected]> Subject: Re: Discard old builds - limit to snapshots? I see a button on the per-build screen. However I'd like this configured within Jenkins as policy to help satisfy some auditing requirements. Is this doable or is this a an improvement to be logged? On 15 August 2014 10:11, James Nord (jnord) <[email protected]<mailto:[email protected]>> wrote: HI James, Both the m2release plugin and the release plugin have the ability to mark a release as keep forever – which will prevent it from being removed as part of the old build tidyup process. If you are not using any of these then you always have the ability to do this manually or via an API call to jenkins as part of the build. /James From: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] On Behalf Of James Green Sent: 15 August 2014 09:20 To: [email protected]<mailto:[email protected]> Subject: Discard old builds - limit to snapshots? I'd really like to keep build history of releases but maintain only a limited set of snapshot history. Is there a way to do this? Thanks, James -- 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 [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
