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

Allow access to environment variables as Groovy variables

      People often confuse Groovy variables with environment variables and do not grasp how to access the latter from outside a forked process.

      CpsScript.getProperty ought to fall back to EnvActionImpl.getProperty as a convenience, so that you can access environment variables from a script as PROP_NAME in addition to env.PROP_NAME.

          [JENKINS-29952] Allow access to environment variables as Groovy variables

          Jesse Glick created issue -
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-29951 [ JENKINS-29951 ]
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-27295 [ JENKINS-27295 ]
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-30910 [ JENKINS-30910 ]
          Patrick Wolf made changes -
          Labels Original: envinronment-variables New: envinronment-variables followup
          Jesse Glick made changes -
          Epic Link New: JENKINS-35394 [ 171187 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 165030 ] New: JNJira + In-Review [ 181797 ]
          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:
            8 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: