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

Resource list stored in env variable empty when label is used in locking

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • Jenkins 2.89.4
      Lockable resources 2.1

      When using lock from jenkinsfile and using label, then the list stored to env variable is empty.  Lock seemed to work, but in my use case I need to have access to the fields of locked resource. Unfortunately there does not seem to be any easy way to access locked resources name and details, except via the env variable. 

      I tried locking with resources name and then list was populated properly, but this is not an option when the lock is used to monitor access to multiple resources of same type and there is a need to have the name and details field of the resource.

       

       

          [JENKINS-49623] Resource list stored in env variable empty when label is used in locking

          Janne Myllyla created issue -
          Tobias Gruetzmacher made changes -
          Assignee New: Tobias Gruetzmacher [ tgr ]
          Tobias Gruetzmacher made changes -
          Released As New: https://github.com/jenkinsci/lockable-resources-plugin/releases/tag/lockable-resources-2.7
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            tgr Tobias Gruetzmacher
            jmyllyla Janne Myllyla
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: