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

Support a quantity of zero required resources

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • Jenkins ver. 2.65,
      Lockable Resources plugin ver. 2.0

      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.

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

              Created:
              Updated:
              Resolved: