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

Variables failing to be set if referencing previous variable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: envinject-plugin
    • Labels:
      None
    • Environment:
      Windows
    • Similar Issues:

      Description

      In 'Prepare an environment for the job', if 'Properties Content' is set to the following:

      TOOLS=C:\MyDir
      JAVA_HOME=$

      {TOOLS}

      /JDK/jdk
      Path=$

      {JAVA_HOME}/bin;${Path}

      Path will not be changed but TOOLS and JAVA_HOME will; however if 'Properties Content' is set to the following:

      TOOLS=C:\MyDir
      JAVA_HOME=C:\MyDir/JDK/jdk
      Path=${JAVA_HOME}

      /bin;$

      {Path}

      all three variables will be set.

      This behavior showed up when I upgraded from 0.15 to 0.18. Attached is a job config.xml that exhibits this problem

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: