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

Support a quantity of zero required resources

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.65,
      Lockable Resources plugin ver. 2.0
    • Similar Issues:

      Description

      If possible, it would be convenient to be able to specify a quantity of zero required resources of a certain type - instead of having to have an "if" condition. This way we could pass in values for quantity and not have to check for 0.

       

      Something like:

      lock(resource: 'resource', quantity: 0) { ...

      that would essentially be ignored.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nv035674 Nathan Vahrenberg
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: