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

Lock multiple resources using the Pipeline lock step

    Details

    • Similar Issues:

      Description

      The current implementation of Pipeline lock step allows to block a single resource.

      It should be extended to cover all the functionality of the plugin (applicable to non-freestyle jobs) such as blocking resources by label or request a lock for N resources.

      The DSL must be something like this:

      lock (resources: ['resource1', 'resource2']) {
        ... execution block ...
      }
      

      or

      lock (label: 'my-resources') {
        ... execution block ...
      }
      

      The behavior of the label parameter would be equivalent to:

      lock (resources: ['resource3', 'resource4']) { // if both resource3 and resource4 are labeled as 'my-resources'
        ... execution block ...
      }
      

        Attachments

          Issue Links

            Activity

            amuniz Antonio Muñiz created issue -
            amuniz Antonio Muñiz made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-30269 [ JENKINS-30269 ]
            amuniz Antonio Muñiz made changes -
            Link This issue is related to JENKINS-34273 [ JENKINS-34273 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 170331 ] JNJira + In-Review [ 183859 ]
            nwegner Niels Wegner made changes -
            Link This issue is duplicated by JENKINS-38165 [ JENKINS-38165 ]
            hrmpw Patrick Wolf made changes -
            Assignee Antonio Muñiz [ amuniz ] CloudBees Inc. [ cloudbees ]
            hrmpw Patrick Wolf made changes -
            Assignee CloudBees Inc. [ cloudbees ]
            amuniz Antonio Muñiz made changes -
            Assignee Antonio Muñiz [ amuniz ]
            amuniz Antonio Muñiz made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            amuniz Antonio Muñiz made changes -
            Remote Link This issue links to "PR (Web Link)" [ 15142 ]

              People

              • Assignee:
                amuniz Antonio Muñiz
                Reporter:
                amuniz Antonio Muñiz
              • Votes:
                19 Vote for this issue
                Watchers:
                33 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: