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

Supported way to get all defined environment variables

      env.getEnvironment() will list environment variables defined globally on the flow build, but not locally defined variables, and it does not work in the sandbox either. Would be desirable to have a whitelisted env.properties returning a Map<String,String> of the effective environment.

          [JENKINS-29951] Supported way to get all defined environment variables

          Jesse Glick created issue -
          Jesse Glick made changes -
          Labels New: environment-variables
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-29952 [ JENKINS-29952 ]
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-29169 [ JENKINS-29169 ]
          Jesse Glick made changes -
          Epic Link New: JENKINS-35394 [ 171187 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 165029 ] New: JNJira + In-Review [ 181796 ]
          Andrew Bayer made changes -
          Component/s New: pipeline-general [ 21692 ]
          Andrew Bayer made changes -
          Component/s Original: workflow-plugin [ 18820 ]
          Jesse Glick made changes -
          Component/s New: workflow-cps-plugin [ 21713 ]
          Component/s Original: pipeline [ 21692 ]

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: