Hi there,

I'm using the Throttle Concurrent Builds 
Plugin<https://wiki.jenkins-ci.org/display/JENKINS/Throttle+Concurrent+Builds+Plugin>
 which 
utilizes hudson.model.queue.*QueueTaskDispatcher*. I want to extend the 
plugins basic functionality in a way that I'm able to release the 
CauseOfBlockage of the running job from within the job itself, while the 
job is still running.

(The reason behind that is that only the first third of our build jobs have 
to run solitary, which I can accomplish with the given functionality of the 
throttle plugin using defined job categories. The remaining two thirds of 
the jobs can run in parallel).


To do so, I'm thinking about setting an environment variable (for e.g. with 
the EnvInject plugin) in the job's configuration, right after the first 
third of the job scripts are run.


*The question now is: Is it possible to query the very current environment 
of a running job via hudson.model.Node and hudson.model.Queue.Task within a 
derived class of QueueTaskDispatcher?*
Or are there better ideas which I can use in the canTake/canRun - methods 
of QueueTaskDispatcher to query dynamically set properties of a running job?


Thanks for your help,

Andreas

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" 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/groups/opt_out.

Reply via email to