Re: Pipeline Workflow && Blocking other jobs

2016-03-15 Thread Pierre Lerouge
Hi Baptiste, Thank you for your awnser, I've tried something like that, but no luck : node(){ stage "test" allocate('test') sleep time: 15, unit: 'MINUTES' sh "echo 'yes'" } @NonCPSdef allocate(String resource){ throttle = new hudson.plugins.throttleconcurrents.Throttle

Re: Pipeline Workflow && Blocking other jobs

2016-03-11 Thread Baptiste Mathus
Gonna probably require twiddling with the API, but it should be possible to use one of the lock plugins (throttle one e.g.). * On the non pipeline one: use it normally * On the pipeline one: wrap the required groovy code in a @NonCPS function to attack the plugin API and acquire the lock. My 2 ce

Re: Pipeline Workflow && Blocking other jobs

2016-03-10 Thread Pierre Lerouge
Hey, Nobody had this need with the pipeline plugin ? Le lundi 7 mars 2016 16:53:56 UTC+1, Pierre Lerouge a écrit : > > Hi, > > I'm trying to block some job when a pipeline is running. > More precisely I'm trying to find a wrapper around certain stages which > could prevent other job to run whil

Pipeline Workflow && Blocking other jobs

2016-03-07 Thread Pierre Lerouge
Hi, I'm trying to block some job when a pipeline is running. More precisely I'm trying to find a wrapper around certain stages which could prevent other job to run while this stage is running. My main problem is the following: My workflow plugin launch a maven:release at some point, which cr