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

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

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

       

       

        Attachments

          Activity

          Hide
          amuniz Antonio Muñiz added a comment -

          2.2 ships JENKINS-40997 which should cover your use case. Actually I don't know what variable are you talking about as the feature did not exist before.

          Show
          amuniz Antonio Muñiz added a comment - 2.2 ships JENKINS-40997 which should cover your use case. Actually I don't know what variable are you talking about as the feature did not exist before.

            People

            • Assignee:
              Unassigned
              Reporter:
              jmyllyla Janne Myllyla
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: