• Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • simple-queue-plugin
    • 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.

          [JENKINS-65227] Provide pipeline steps to take queue actions

          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

          Jaroslav Otradovec added a comment - 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

          Yes, we do already employ the Priority Sorter plugin, but only to get use of out in a rather hackish way, as it also has no integration with pipeline jobs/steps.

          Brian J Murrell added a comment - Yes, we do already employ the Priority Sorter plugin, but only to get use of out in a rather hackish way, as it also has no integration with pipeline jobs/steps.

            otradovec Jaroslav Otradovec
            brianjmurrell Brian J Murrell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: