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

Can not set PATH environment variable on master node

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • envinject-plugin
    • Jenkins 1.517, envInject 1.87. Master runs on i686 CentOS 5.8. Slave nodes on various CentOS, Redhat and Windows versions.

      The PATH environment variable is not set properly on the master. I have tried configuring the PATH variable in:

      • the Manage Jenkins -> Configure System -> Global Properties.
      • and in the Node Properties -> Environment variables section on the master node Configure screen.

      With a simple job that is tied to the master node and prints the PATH variable, I see only a default-looking PATH=/sbin:/usr/sbin:/bin:/usr/bin.

      The job does properly print other environment variables that I have configured on the master.

      I recently upgraded from 1.498 to 1.517 along with many plugins, including EnvInject 1.78 to 1.87. This was not a problem with my previous installation.

      Downgrading from EnvInject 1.87 to 1.78 resolved the problem.

            gbois Gregory Boissinot
            dbacher Dave Bacher
            Votes:
            23 Vote for this issue
            Watchers:
            26 Start watching this issue

              Created:
              Updated: