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

Job variables/parameters are missing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: envinject-plugin
    • Labels:
      None
    • Environment:
      Latest Jenkins+ v0.9 of EnvInject plugin. Running on Windows.
    • Similar Issues:

      Description

      If the EnvInject v0.9 is INSTALLED into Jenkins, Jenkins build jobs will no longer have their per-job variables available. Some of these variables are things like WORKSPACE, BUILD_NUMBER, etc.

      To test, install EnvInject v0.9. Create a simple job with a single Execute Windows batch command whose only command is "set". Run the job with EnvInject - you'll see some variables. Uninstall or disable EnvInject, restart Jenkins, run the same job - more variables will be seen.

      Reason I marked this a "Blocker" - a workspace clean out command wiped our hard drive. Several of our jobs have a command like this "del %WORKSPACE%*.* /s /q". This has always worked nicely in the past, clear back to Hudson days. But run it with EnvInject v0.9 and it will wipe the drive - which the job proceeded to do.

        Attachments

          Activity

          Hide
          ganncamp G. Ann Campbell added a comment -

          I saw this as well. Fortunately, the consequences were not so dire.
          My sympathies, Jason.

          Show
          ganncamp G. Ann Campbell added a comment - I saw this as well. Fortunately, the consequences were not so dire. My sympathies, Jason.
          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

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              jswager1 Jason Swager
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: