Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-38165

Support lockable resource labels in the pipeline

    Details

    • Similar Issues:

      Description

      With the Lockable Resource plugin, you can define say resources "mydev1", "mydev2", "mydev3", give them all a "mydev" label, then configure your job to have "label:mydev" and "Number of resources to request:2". That works nicely. But, I would like to use this from a section of a pipeline, where after a slow build, I invoke a parallel block where I use one "mydev" in each leg, so that I can restrict timespan of the critical section to just the portion it needs to be.

      But, per the documentation on https://wiki.jenkins-ci.org/display/JENKINS/Lockable+Resources+Plugin and the code on https://github.com/jenkinsci/lockable-resources-plugin/blob/master/src/main/java/org/jenkins/plugins/lockableresources/LockStep.java#L23, the lock step in a pipeline you have to provide a 'resource', and there is no mechanism to provide a label.

      Can label support please be added?

        Attachments

          Issue Links

            Activity

            Hide
            nwegner Niels Wegner added a comment -

            I really like the idea of this request as it fits exactly my current needs, but I also think it duplicates JENKINS-34268

            Show
            nwegner Niels Wegner added a comment - I really like the idea of this request as it fits exactly my current needs, but I also think it duplicates JENKINS-34268
            Hide
            epsilon_b Epsilon B added a comment - - edited

            Implemented in PR36: see JENKINS-34268.

            Show
            epsilon_b Epsilon B added a comment - - edited Implemented in PR36 : see JENKINS-34268 .

              People

              • Assignee:
                Unassigned
                Reporter:
                makuk66 Martijn Koster
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: