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”
      }

          [JENKINS-30269] Add workflow support for resource locking

          Nigel Harniman created issue -
          Nigel Harniman made changes -
          Description Original: 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”
          }

          New: 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”
          }

          Nigel Harniman made changes -
          Description Original: 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”
          }

          New: 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”
          }

          Jesse Glick made changes -
          Issue Type Original: Improvement [ 4 ] New: New Feature [ 2 ]
          Jesse Glick made changes -
          Link New: This issue is duplicated by JENKINS-30757 [ JENKINS-30757 ]
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-29892 [ JENKINS-29892 ]
          Antonio Muñiz made changes -
          Assignee New: Antonio Muñiz [ amuniz ]
          Antonio Muñiz made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-29207 [ JENKINS-29207 ]
          Antonio Muñiz made changes -
          Remote Link New: This issue links to "PR (Web Link)" [ 14203 ]
          Antonio Muñiz made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

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

              Created:
              Updated:
              Resolved: