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

Environment variable EXECUTOR_NUMBER should be usable inside node{} block

    XMLWordPrintable

Details

    Description

      Among few other environment variables that are generally available in freestyle job, EXECUTOR_NUMBER is not exposed in workflows.

      Referencing to the discussion in the attached URL, I would like to see this environment variable exposed especially inside node{} blocks where it makes the most sense. We have a similar use case as described in the discussion where workspaces are allocated based on the executor number, and currently workflow cannot handle this situation.

      Attachments

        Issue Links

          Activity

            oltzu Olli Sivonen created issue -
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-28131 [ JENKINS-28131 ]
            jglick Jesse Glick made changes -
            Labels environment-variables api environment-variables executor
            jglick Jesse Glick made changes -
            Assignee Jesse Glick [ jglick ] Luca Vitucci [ vexdev ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 246 (Web Link)" [ 13526 ]
            jglick Jesse Glick made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Resolved [ 5 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 166731 ] JNJira + In-Review [ 198037 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]
            oltzu Olli Sivonen made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

            People

              vexdev Luca Vitucci
              oltzu Olli Sivonen
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: