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

When the job with 'Keep System Environment Variables' option is run on a slave node, it used system environment variables ON A MASTER NODE

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      My master node's "# of executors" is "0". There are two slave node, which connect by jnlp.
      Theses nodes is running on windows server.
      free-style job -> Prepare an environment for the job (checked) -> Keep System Environment Variables (checked), and "foo=bar" in the Properties Content
      If the Properties Content is empty, it does work.

        Attachments

        1. 0.9_config.xml
          1 kB
        2. 0.9_console.txt
          1 kB
        3. 0.9_Injected_environment_variables.txt
          0.2 kB
        4. config.xml
          1 kB
        5. Injected_environment_variables.txt
          2 kB
        6. master_node_env(GREIZER).txt
          1 kB
        7. slave_node_env(NIBOSHI).txt
          1 kB

          Activity

          Hide
          hizuya Hizuya Atsuzaki added a comment -

          Have you check 'keep build variables'?

          Yes i have. (0.9_config.xml)

          Show
          hizuya Hizuya Atsuzaki added a comment - Have you check 'keep build variables'? Yes i have. (0.9_config.xml)
          Hide
          hizuya Hizuya Atsuzaki added a comment -

          Some of jenkins variables (JOB_NAME, BUILD_ID, etc.) is set.
          I think that the variable decided by the slave node is missed.

          Show
          hizuya Hizuya Atsuzaki added a comment - Some of jenkins variables (JOB_NAME, BUILD_ID, etc.) is set. I think that the variable decided by the slave node is missed.
          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/EnvInjectComputerListener.java
          src/main/java/org/jenkinsci/plugins/envinject/EnvInjectJobProperty.java
          src/main/java/org/jenkinsci/plugins/envinject/EnvInjectListener.java
          src/main/java/org/jenkinsci/plugins/envinject/EnvInjectNodeProperty.java
          src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectActionSetter.java
          src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/config.jelly
          src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-keepJenkinsSystemVariables.html
          src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-keepSystemVariables.html
          src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectNodeProperty/config.jelly
          src/main/resources/org/jenkinsci/plugins/envinject/Messages.properties
          src/main/webapp/help-node.html
          src/main/webapp/help-unsetSystemVariables.html
          src/main/webapp/help.html
          http://jenkins-ci.org/commit/envinject-plugin/5af26b83e8c21e6d0f2cb2d384efc810300ea85a
          Log:
          Fixed JENKINS-10845 and JENKINS-10877

          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/EnvInjectComputerListener.java src/main/java/org/jenkinsci/plugins/envinject/EnvInjectJobProperty.java src/main/java/org/jenkinsci/plugins/envinject/EnvInjectListener.java src/main/java/org/jenkinsci/plugins/envinject/EnvInjectNodeProperty.java src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectActionSetter.java src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/config.jelly src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-keepJenkinsSystemVariables.html src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-keepSystemVariables.html src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectNodeProperty/config.jelly src/main/resources/org/jenkinsci/plugins/envinject/Messages.properties src/main/webapp/help-node.html src/main/webapp/help-unsetSystemVariables.html src/main/webapp/help.html http://jenkins-ci.org/commit/envinject-plugin/5af26b83e8c21e6d0f2cb2d384efc810300ea85a Log: Fixed JENKINS-10845 and JENKINS-10877
          Hide
          gbois Gregory Boissinot added a comment -

          Fixed in 0.10

          Show
          gbois Gregory Boissinot added a comment - Fixed in 0.10
          Hide
          hizuya Hizuya Atsuzaki added a comment -

          Thanks, I confirmed it.
          Your plugin is very usefule for me!

          Show
          hizuya Hizuya Atsuzaki added a comment - Thanks, I confirmed it. Your plugin is very usefule for me!

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              hizuya Hizuya Atsuzaki
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: