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

Variables failing to be set if referencing previous variable

XMLWordPrintable

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

      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

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

              Created:
              Updated:
              Resolved: