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

Variables failing to be set if referencing previous variable

    XMLWordPrintable

    Details

    • 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

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          pom.xml
          src/main/java/org/jenkinsci/plugins/envinject/EnvInjectBuildWrapper.java
          src/main/java/org/jenkinsci/plugins/envinject/EnvInjectBuilder.java
          src/main/java/org/jenkinsci/plugins/envinject/EnvInjectListener.java
          src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectEnvVars.java
          src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectEnvVarsUnset.java
          http://jenkins-ci.org/commit/envinject-plugin/05dee8cdc1a1b7f13be6213e79bf61401f49569d
          Log:
          Fixed JENKINS-11181

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: pom.xml src/main/java/org/jenkinsci/plugins/envinject/EnvInjectBuildWrapper.java src/main/java/org/jenkinsci/plugins/envinject/EnvInjectBuilder.java src/main/java/org/jenkinsci/plugins/envinject/EnvInjectListener.java src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectEnvVars.java src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectEnvVarsUnset.java http://jenkins-ci.org/commit/envinject-plugin/05dee8cdc1a1b7f13be6213e79bf61401f49569d Log: Fixed JENKINS-11181
          Hide
          gbois Gregory Boissinot added a comment -

          Fixed in 0.19

          Show
          gbois Gregory Boissinot added a comment - Fixed in 0.19

            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: