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

Backslash handling when referencing existing environment variable

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • envinject-plugin
    • None
    • Windows

      When an existing environment variable is used in the 'Properties Content' field, referenced environment variables are resolved and then re-parsed. In a Windows environment this causes environment variables containing paths to be unusable as the backslashes will disappear.

      For example, if JENKINS_HOME is equal to "C:\Program Files\Jenkins" and the 'Properties Content' field contains:

      TOOLS_DIR=${JENKINS_HOME}/../tools

      TOOLS_DIR will receive the value "C:Program FilesJenkins/../tools" rather than the intended "C:\Program Files\Jenkins/../tools".

            gbois Gregory Boissinot
            ciavonne Luke Ciavonne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: