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

Add workflow support for resource locking

    Details

    • Similar Issues:

      Description

      Add support to use this plugin from workflow to manage concurrent consumption of resources.

      Similar to how stage step works as blocked scoped to control concurrency of other builds for this job running this step at the same time, it would be useful to be able to do this for resources across jobs.

      Continue to allow the resources to be set up in the Jenkins configuration.

      Consumption of resources should be controlled with a syntax along these lines:

      For a single resource:

      resource (name: db-a-1, reservedVariable: DB_RESOURCE) {

      // Do something here that uses the resource

      echo “DB Resource(s) used = $DB_RESOURCE”
      }

      For a pool of resources sharing a label:

      resource (label: db-a, quantity: 2, reservedVariable: DB_RESOURCE) {

      // Do something here that uses the resource

      echo “DB Resource(s) used = $DB_RESOURCE”
      }

        Attachments

          Issue Links

            Activity

            Hide
            tg9541 Thomas Goeppel added a comment -

            This would be highly appreciated for controlling nodes that can run one (1) instance of a software that's needed in a build at a time. A different approach would be 'labelled executors', or alternatively 'virtual slaves'. Personally I would prefer such a solution to resource locking (of course, counting software licences is a different use case).

            Show
            tg9541 Thomas Goeppel added a comment - This would be highly appreciated for controlling nodes that can run one (1) instance of a software that's needed in a build at a time. A different approach would be 'labelled executors', or alternatively 'virtual slaves'. Personally I would prefer such a solution to resource locking (of course, counting software licences is a different use case).
            Hide
            jglick Jesse Glick added a comment -

            Hmm, I filed JENKINS-29461 for the locks-and-latches plugin but it seems to have disappeared from JIRA! (Recorded in COMPATIBILITY.md on Tue Jul 21.) Anyway that plugin seems abandoned? So this is better.

            As written LockableResource is not ready for Workflow because its state is transient.

            Show
            jglick Jesse Glick added a comment - Hmm, I filed JENKINS-29461 for the locks-and-latches plugin but it seems to have disappeared from JIRA! (Recorded in COMPATIBILITY.md on Tue Jul 21.) Anyway that plugin seems abandoned? So this is better. As written LockableResource is not ready for Workflow because its state is transient .
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Nigel Harniman
            Path:
            COMPATIBILITY.md
            http://jenkins-ci.org/commit/workflow-plugin/c8a97fd333a28a388c4b64c97ad7eeddc9f3a125
            Log:
            JENKINS-30269 noting.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nigel Harniman Path: COMPATIBILITY.md http://jenkins-ci.org/commit/workflow-plugin/c8a97fd333a28a388c4b64c97ad7eeddc9f3a125 Log: JENKINS-30269 noting.
            Hide
            xvdessel Xavier Van Dessel added a comment -

            A suggested work around for this problem is documented in ticket JENKINS-31343. However, if the delay on the resource would be rather long (several hours to a day or more) the frequency of the resource check would be so slow that you easily loose an hour before detecting that the resource has been freed.

            Show
            xvdessel Xavier Van Dessel added a comment - A suggested work around for this problem is documented in ticket JENKINS-31343 . However, if the delay on the resource would be rather long (several hours to a day or more) the frequency of the resource check would be so slow that you easily loose an hour before detecting that the resource has been freed.
            Hide
            jglick Jesse Glick added a comment -

            JENKINS-31343 does not really have much to do with this, I think, since waitUntil is not a useful workaround for this RFE unless you already have an external resource locking system you can use.

            Show
            jglick Jesse Glick added a comment - JENKINS-31343 does not really have much to do with this, I think, since waitUntil is not a useful workaround for this RFE unless you already have an external resource locking system you can use.
            Hide
            jglick Jesse Glick added a comment -

            In particular, without internal code changes this plugin is not ready for Workflow.

            Show
            jglick Jesse Glick added a comment - In particular, without internal code changes this plugin is not ready for Workflow.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Antonio Muñiz
            Path:
            pom.xml
            src/main/java/org/jenkins/plugins/lockableresources/LockStep.java
            http://jenkins-ci.org/commit/lockable-resources-plugin/85e2b3838fe4121aeffc2b78750b0deb2501743e
            Log:
            JENKINS-30269 Core version bump - required to add Pipeline support

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Antonio Muñiz Path: pom.xml src/main/java/org/jenkins/plugins/lockableresources/LockStep.java http://jenkins-ci.org/commit/lockable-resources-plugin/85e2b3838fe4121aeffc2b78750b0deb2501743e Log: JENKINS-30269 Core version bump - required to add Pipeline support
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Antonio Muñiz
            Path:
            pom.xml
            src/main/java/org/jenkins/plugins/lockableresources/LockStep.java
            src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java
            src/main/java/org/jenkins/plugins/lockableresources/LockableResource.java
            src/main/java/org/jenkins/plugins/lockableresources/LockableResourcesManager.java
            http://jenkins-ci.org/commit/lockable-resources-plugin/524081869f6088d8dafda2065fc98f1c19f682b4
            Log:
            JENKINS-30269 Step execution implementation

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Antonio Muñiz Path: pom.xml src/main/java/org/jenkins/plugins/lockableresources/LockStep.java src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java src/main/java/org/jenkins/plugins/lockableresources/LockableResource.java src/main/java/org/jenkins/plugins/lockableresources/LockableResourcesManager.java http://jenkins-ci.org/commit/lockable-resources-plugin/524081869f6088d8dafda2065fc98f1c19f682b4 Log: JENKINS-30269 Step execution implementation
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Antonio Muñiz
            Path:
            src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java
            src/main/java/org/jenkins/plugins/lockableresources/queue/LockableResourcesStruct.java
            src/test/java/org/jenkins/plugins/lockableresources/LockableResourceTest.java
            http://jenkins-ci.org/commit/lockable-resources-plugin/c716299b6051a9d9bc5a905ebc663d9939025c27
            Log:
            JENKINS-30269 Use the global static resources state

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Antonio Muñiz Path: src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java src/main/java/org/jenkins/plugins/lockableresources/queue/LockableResourcesStruct.java src/test/java/org/jenkins/plugins/lockableresources/LockableResourceTest.java http://jenkins-ci.org/commit/lockable-resources-plugin/c716299b6051a9d9bc5a905ebc663d9939025c27 Log: JENKINS-30269 Use the global static resources state
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Antonio Muñiz
            Path:
            src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java
            src/main/java/org/jenkins/plugins/lockableresources/LockableResource.java
            http://jenkins-ci.org/commit/lockable-resources-plugin/d53849225dd18497a7b328476dfb0e6452af0147
            Log:
            JENKINS-30269 Avoid infinite checking in the background task

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Antonio Muñiz Path: src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java src/main/java/org/jenkins/plugins/lockableresources/LockableResource.java http://jenkins-ci.org/commit/lockable-resources-plugin/d53849225dd18497a7b328476dfb0e6452af0147 Log: JENKINS-30269 Avoid infinite checking in the background task
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Antonio Muñiz
            Path:
            pom.xml
            src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java
            src/main/java/org/jenkins/plugins/lockableresources/LockableResource.java
            src/main/java/org/jenkins/plugins/lockableresources/queue/LockableResourcesStruct.java
            http://jenkins-ci.org/commit/lockable-resources-plugin/d5b44a42d021326ccf9a8da743904024e87ab2a5
            Log:
            JENKINS-30269 Make the step work

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Antonio Muñiz Path: pom.xml src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java src/main/java/org/jenkins/plugins/lockableresources/LockableResource.java src/main/java/org/jenkins/plugins/lockableresources/queue/LockableResourcesStruct.java http://jenkins-ci.org/commit/lockable-resources-plugin/d5b44a42d021326ccf9a8da743904024e87ab2a5 Log: JENKINS-30269 Make the step work
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Antonio Muñiz
            Path:
            pom.xml
            src/main/java/org/jenkins/plugins/lockableresources/LockableResourcesManager.java
            src/main/java/org/jenkins/plugins/lockableresources/RequiredResourcesProperty.java
            src/main/java/org/jenkins/plugins/lockableresources/queue/LockableResourcesQueueTaskDispatcher.java
            http://jenkins-ci.org/commit/lockable-resources-plugin/810e1e903525fa1a4115bca0f333c1fcb937072f
            Log:
            JENKINS-30269 Upgrade baseline to pick up a recent version of Pipeline

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Antonio Muñiz Path: pom.xml src/main/java/org/jenkins/plugins/lockableresources/LockableResourcesManager.java src/main/java/org/jenkins/plugins/lockableresources/RequiredResourcesProperty.java src/main/java/org/jenkins/plugins/lockableresources/queue/LockableResourcesQueueTaskDispatcher.java http://jenkins-ci.org/commit/lockable-resources-plugin/810e1e903525fa1a4115bca0f333c1fcb937072f Log: JENKINS-30269 Upgrade baseline to pick up a recent version of Pipeline
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Antonio Muñiz
            Path:
            src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java
            src/main/java/org/jenkins/plugins/lockableresources/LockableResource.java
            src/test/java/org/jenkins/plugins/lockableresources/LockStepTest.java
            src/test/java/org/jenkins/plugins/lockableresources/LockableResourceTest.java
            http://jenkins-ci.org/commit/lockable-resources-plugin/aea4806c068c97679bcdec4e9247a4365ff72f7d
            Log:
            JENKINS-30269 Better logs when using the lock step

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Antonio Muñiz Path: src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java src/main/java/org/jenkins/plugins/lockableresources/LockableResource.java src/test/java/org/jenkins/plugins/lockableresources/LockStepTest.java src/test/java/org/jenkins/plugins/lockableresources/LockableResourceTest.java http://jenkins-ci.org/commit/lockable-resources-plugin/aea4806c068c97679bcdec4e9247a4365ff72f7d Log: JENKINS-30269 Better logs when using the lock step
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Antonio Muñiz
            Path:
            pom.xml
            src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java
            src/test/java/org/jenkins/plugins/lockableresources/LockStepTest.java
            http://jenkins-ci.org/commit/lockable-resources-plugin/59049a56a3441497536c6938786b2da98945a537
            Log:
            JENKINS-30269 Take advantage of TailCall

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Antonio Muñiz Path: pom.xml src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java src/test/java/org/jenkins/plugins/lockableresources/LockStepTest.java http://jenkins-ci.org/commit/lockable-resources-plugin/59049a56a3441497536c6938786b2da98945a537 Log: JENKINS-30269 Take advantage of TailCall
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Antonio Muñiz
            Path:
            pom.xml
            src/main/java/org/jenkins/plugins/lockableresources/LockStep.java
            src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java
            src/main/java/org/jenkins/plugins/lockableresources/LockableResource.java
            src/main/java/org/jenkins/plugins/lockableresources/LockableResourcesManager.java
            src/test/java/org/jenkins/plugins/lockableresources/LockStepTest.java
            http://jenkins-ci.org/commit/lockable-resources-plugin/e75f02e91c4df6d982d92dc47906ff282465a2a4
            Log:
            JENKINS-30269 Jenkins restart support

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Antonio Muñiz Path: pom.xml src/main/java/org/jenkins/plugins/lockableresources/LockStep.java src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java src/main/java/org/jenkins/plugins/lockableresources/LockableResource.java src/main/java/org/jenkins/plugins/lockableresources/LockableResourcesManager.java src/test/java/org/jenkins/plugins/lockableresources/LockStepTest.java http://jenkins-ci.org/commit/lockable-resources-plugin/e75f02e91c4df6d982d92dc47906ff282465a2a4 Log: JENKINS-30269 Jenkins restart support
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Antonio Muñiz
            Path:
            src/main/java/org/jenkins/plugins/lockableresources/LockStep.java
            src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java
            src/main/java/org/jenkins/plugins/lockableresources/LockableResource.java
            src/main/java/org/jenkins/plugins/lockableresources/LockableResourcesManager.java
            src/main/java/org/jenkins/plugins/lockableresources/RequiredResourcesProperty.java
            src/main/resources/org/jenkins/plugins/lockableresources/LockStep/config.jelly
            src/main/resources/org/jenkins/plugins/lockableresources/LockStep/help-maxWaiting.html
            src/main/resources/org/jenkins/plugins/lockableresources/LockStep/help-resource.html
            src/test/java/org/jenkins/plugins/lockableresources/LockStepTest.java
            http://jenkins-ci.org/commit/lockable-resources-plugin/9617986b388c2bc20f8d63b8f5162f0f2091dd7e
            Log:
            JENKINS-30269 Add step configuration page + limit waiting builds

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Antonio Muñiz Path: src/main/java/org/jenkins/plugins/lockableresources/LockStep.java src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java src/main/java/org/jenkins/plugins/lockableresources/LockableResource.java src/main/java/org/jenkins/plugins/lockableresources/LockableResourcesManager.java src/main/java/org/jenkins/plugins/lockableresources/RequiredResourcesProperty.java src/main/resources/org/jenkins/plugins/lockableresources/LockStep/config.jelly src/main/resources/org/jenkins/plugins/lockableresources/LockStep/help-maxWaiting.html src/main/resources/org/jenkins/plugins/lockableresources/LockStep/help-resource.html src/test/java/org/jenkins/plugins/lockableresources/LockStepTest.java http://jenkins-ci.org/commit/lockable-resources-plugin/9617986b388c2bc20f8d63b8f5162f0f2091dd7e Log: JENKINS-30269 Add step configuration page + limit waiting builds
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Antonio Muñiz
            Path:
            pom.xml
            src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java
            src/main/java/org/jenkins/plugins/lockableresources/LockableResource.java
            src/main/java/org/jenkins/plugins/lockableresources/LockableResourcesManager.java
            src/main/java/org/jenkins/plugins/lockableresources/actions/LockableResourcesRootAction.java
            src/main/java/org/jenkins/plugins/lockableresources/queue/LockRunListener.java
            http://jenkins-ci.org/commit/lockable-resources-plugin/a14014bdbbfbe2a76f7a97bf7b2add0aa92796d2
            Log:
            JENKINS-30269 Supress polling for locking and use StepContext to notify locks in the same Pipeline build

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Antonio Muñiz Path: pom.xml src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java src/main/java/org/jenkins/plugins/lockableresources/LockableResource.java src/main/java/org/jenkins/plugins/lockableresources/LockableResourcesManager.java src/main/java/org/jenkins/plugins/lockableresources/actions/LockableResourcesRootAction.java src/main/java/org/jenkins/plugins/lockableresources/queue/LockRunListener.java http://jenkins-ci.org/commit/lockable-resources-plugin/a14014bdbbfbe2a76f7a97bf7b2add0aa92796d2 Log: JENKINS-30269 Supress polling for locking and use StepContext to notify locks in the same Pipeline build
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Antonio Muñiz
            Path:
            src/main/java/org/jenkins/plugins/lockableresources/LockStep.java
            src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java
            src/main/java/org/jenkins/plugins/lockableresources/LockableResource.java
            src/main/java/org/jenkins/plugins/lockableresources/LockableResourcesManager.java
            src/test/java/org/jenkins/plugins/lockableresources/LockStepTest.java
            http://jenkins-ci.org/commit/lockable-resources-plugin/9fe73b1ce5b7276caa3270741e2ae82c582436d8
            Log:
            JENKINS-30269 Add inversePrecedence parameter + tests

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Antonio Muñiz Path: src/main/java/org/jenkins/plugins/lockableresources/LockStep.java src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java src/main/java/org/jenkins/plugins/lockableresources/LockableResource.java src/main/java/org/jenkins/plugins/lockableresources/LockableResourcesManager.java src/test/java/org/jenkins/plugins/lockableresources/LockStepTest.java http://jenkins-ci.org/commit/lockable-resources-plugin/9fe73b1ce5b7276caa3270741e2ae82c582436d8 Log: JENKINS-30269 Add inversePrecedence parameter + tests
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Antonio
            Path:
            pom.xml
            src/main/java/org/jenkins/plugins/lockableresources/LockStep.java
            src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java
            src/main/java/org/jenkins/plugins/lockableresources/LockableResource.java
            src/main/java/org/jenkins/plugins/lockableresources/LockableResourcesManager.java
            src/main/java/org/jenkins/plugins/lockableresources/RequiredResourcesProperty.java
            src/main/java/org/jenkins/plugins/lockableresources/actions/LockableResourcesRootAction.java
            src/main/java/org/jenkins/plugins/lockableresources/queue/LockRunListener.java
            src/main/java/org/jenkins/plugins/lockableresources/queue/LockableResourcesQueueTaskDispatcher.java
            src/main/java/org/jenkins/plugins/lockableresources/queue/LockableResourcesStruct.java
            src/main/resources/org/jenkins/plugins/lockableresources/LockStep/config.jelly
            src/main/resources/org/jenkins/plugins/lockableresources/LockStep/help-inversePrecedence.html
            src/main/resources/org/jenkins/plugins/lockableresources/LockStep/help-resource.html
            src/test/java/org/jenkins/plugins/lockableresources/LockStepTest.java
            src/test/java/org/jenkins/plugins/lockableresources/LockableResourceTest.java
            http://jenkins-ci.org/commit/lockable-resources-plugin/466adef6c1b0212b2866f3b562a4059040a6109a
            Log:
            Merge pull request #25 from amuniz/JENKINS-30269

            JENKINS-30269 Add pipeline support for resource locking

            Compare: https://github.com/jenkinsci/lockable-resources-plugin/compare/76c93d5f4d1e...466adef6c1b0

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Antonio Path: pom.xml src/main/java/org/jenkins/plugins/lockableresources/LockStep.java src/main/java/org/jenkins/plugins/lockableresources/LockStepExecution.java src/main/java/org/jenkins/plugins/lockableresources/LockableResource.java src/main/java/org/jenkins/plugins/lockableresources/LockableResourcesManager.java src/main/java/org/jenkins/plugins/lockableresources/RequiredResourcesProperty.java src/main/java/org/jenkins/plugins/lockableresources/actions/LockableResourcesRootAction.java src/main/java/org/jenkins/plugins/lockableresources/queue/LockRunListener.java src/main/java/org/jenkins/plugins/lockableresources/queue/LockableResourcesQueueTaskDispatcher.java src/main/java/org/jenkins/plugins/lockableresources/queue/LockableResourcesStruct.java src/main/resources/org/jenkins/plugins/lockableresources/LockStep/config.jelly src/main/resources/org/jenkins/plugins/lockableresources/LockStep/help-inversePrecedence.html src/main/resources/org/jenkins/plugins/lockableresources/LockStep/help-resource.html src/test/java/org/jenkins/plugins/lockableresources/LockStepTest.java src/test/java/org/jenkins/plugins/lockableresources/LockableResourceTest.java http://jenkins-ci.org/commit/lockable-resources-plugin/466adef6c1b0212b2866f3b562a4059040a6109a Log: Merge pull request #25 from amuniz/ JENKINS-30269 JENKINS-30269 Add pipeline support for resource locking Compare: https://github.com/jenkinsci/lockable-resources-plugin/compare/76c93d5f4d1e...466adef6c1b0
            Hide
            amuniz Antonio Muñiz added a comment -

            Released as 1.8

            Show
            amuniz Antonio Muñiz added a comment - Released as 1.8
            Hide
            aeon512 Florian Hug added a comment -

            First of all, it's great to finally have workflow support for resource locking.
            However, I couldn't find any possibility to lock, e.g. 3 resources assigned to the label Foo.
            As far as I have understood the documentation and from trying to understand the source code, the workflow support is limited to request a specific resource by name.

            Wouldn't it be great to have the full functionality available in workflows?
            Especially as these use cases were also mentioned by the issue reporter.

            Show
            aeon512 Florian Hug added a comment - First of all, it's great to finally have workflow support for resource locking. However, I couldn't find any possibility to lock, e.g. 3 resources assigned to the label Foo. As far as I have understood the documentation and from trying to understand the source code, the workflow support is limited to request a specific resource by name. Wouldn't it be great to have the full functionality available in workflows? Especially as these use cases were also mentioned by the issue reporter.
            Hide
            amuniz Antonio Muñiz added a comment -

            As far as I have understood the documentation and from trying to understand the source code, the workflow support is limited to request a specific resource by name.

            Right.

            Wouldn't it be great to have the full functionality available in workflows?

            Especially as these use cases were also mentioned by the issue reporter.

            Yes. I've tried to cover the most common use-case in a Pipeline world (which is a replacement for stage concurrency: 1). The lock step has been designed to allow the addition of labels and multiple locking in future releases (filed as JENKINS-34268).

            Show
            amuniz Antonio Muñiz added a comment - As far as I have understood the documentation and from trying to understand the source code, the workflow support is limited to request a specific resource by name. Right. Wouldn't it be great to have the full functionality available in workflows? Especially as these use cases were also mentioned by the issue reporter. Yes. I've tried to cover the most common use-case in a Pipeline world (which is a replacement for stage concurrency: 1 ). The lock step has been designed to allow the addition of labels and multiple locking in future releases (filed as JENKINS-34268 ).
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            COMPATIBILITY.md
            http://jenkins-ci.org/commit/pipeline-plugin/7596ae10c2035a6c239e4ce8ca3af4c1ee1f78c8
            Log:
            Noting JENKINS-30269 (CC @amuniz)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: COMPATIBILITY.md http://jenkins-ci.org/commit/pipeline-plugin/7596ae10c2035a6c239e4ce8ca3af4c1ee1f78c8 Log: Noting JENKINS-30269 (CC @amuniz)

              People

              • Assignee:
                amuniz Antonio Muñiz
                Reporter:
                nharniman Nigel Harniman
              • Votes:
                9 Vote for this issue
                Watchers:
                21 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: