Lockable Resource Lock with inversePrecedence=true not granting lock to newest build

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Lockable resources with inversePrecedence=true is not functioning correctly when used in the steps block of a Declarative Pipeline. The locked resource is locked correctly but when released it does not grant the lock to the newest build but instead the first one that requested it, as if inversePrecedence=false.

      I discovered that if you use the lock in the when block of the Declarative Pipeline the inversePrecedence behaves as expected.

            Assignee:
            Unassigned
            Reporter:
            Chris Carson
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: