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

PATH variable is not injected

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: envinject-plugin
    • Labels:
      None
    • Environment:
      jenkins 1.448
      envinject 1.29
    • Similar Issues:

      Description

      With 1.29 update $PATH variable is not redefined:

      console:
      --------------------------
      [EnvInject] - Executing scripts and injecting environment variables after the SCM step.
      [EnvInject] - Injecting as environment variables the properties content
      PATH=/some/dir/:$PATH
      TEST_VAR=aaaaa

      [EnvInject] - Variables injected successfully.
      [EnvInject] - Unset unresolved 'PATH' variable.
      [testPATH] $ /bin/sh -xe /tmp/hudson2831645515572899066.sh
      + echo /usr/local/bin:/bin:/usr/bin
      /usr/local/bin:/bin:/usr/bin
      + echo aaaaa
      aaaaa
      --------------------------
      I need to redefine $PATH to use within actual build.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/org/jenkinsci/plugins/envinject/EnvInjectListener.java
          src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectEnvVars.java
          http://jenkins-ci.org/commit/envinject-plugin/a3f9b080198f83d29c5aef8eeac10f232fe10c11
          Log:
          Fix JENKINS-12905

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/envinject/EnvInjectListener.java src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectEnvVars.java http://jenkins-ci.org/commit/envinject-plugin/a3f9b080198f83d29c5aef8eeac10f232fe10c11 Log: Fix JENKINS-12905

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              nnau Natalia Naumova
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: