-
Improvement
-
Resolution: Unresolved
-
Major
-
None
It would be really cool if this plugin could be driven from a pipeline.
For example, a pipeline step that allows a given job (stage) in a pipeline to be able to move itself to the head of the queue.
Even some examples in groovy of how this could be done would be awesome.
Interesting idea, have you thought about using Priority Sorter? https://github.com/jenkinsci/priority-sorter-plugin I dont know if it has a pipeline integration but it sound more like you always know which job is more important that other one.
If anyway anyone would like to push this forward, here is documentation for pipelines https://www.jenkins.io/doc/developer/plugin-development/pipeline-integration/
And here example plugin https://github.com/jenkinsci/workflow-scm-step-plugin