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

Allow access to environment variables as Groovy variables

XMLWordPrintable

      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.

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            8 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: