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

Add workflow support for resource locking

    XMLWordPrintable

    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

              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: