Re: Execute action on build deletion

2016-10-13 Thread Adri CS
Hi Baptiste, Thanks for your input. I will go for the plugin option, as I think this shouldn't be a "system" script, because I only need this behaviour for a very specific jobs. Thanks and cheers! On Thursday, 8 September 2016 18:10:44 UTC+2, Baptiste Mathus wrote: > > I think this is a matter

Re: Execute action on build deletion

2016-09-08 Thread Baptiste Mathus
I think this is a matter of context. That has to be like a "system" groovy script. Also, if that doesn't work, you should probably just create a plugin. You have already written what you need, and that will let you manage it cleanlier (writing tests, versioning…). Cheers Le 6 sept. 2016 6:32 PM,

Execute action on build deletion

2016-09-06 Thread Adri CS
Hi, I have a parametrized job that spawns Docker containers when it's running. This job is configured to store only the 10 most recent runs. I would like to have the containers running for as long as the run that spawned them is stored in Jenkins. So, the idea would be having something like a L