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

Environment variables using PATH+SOMETHING syntax clear the previous env var

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • kubernetes-plugin
    • None

      withEnv(['PATH+MAVEN=/bin/mvn']) {
        sh 'echo $PATH'
      }
      

      will set PATH to /bin/mvn ignoring previous value

          [JENKINS-50437] Environment variables using PATH+SOMETHING syntax clear the previous env var

          Carlos Sanchez added a comment - Caused by the changes to KubernetesComputer.java in JENKINS-42582 https://github.com/jenkinsci/kubernetes-plugin/pull/291/files#diff-d7c591c5115c154bd8394f3479e07131

          Oleg Nenashev added a comment -

          Hit it in my test instance

          Oleg Nenashev added a comment - Hit it in my test instance

            csanchez Carlos Sanchez
            csanchez Carlos Sanchez
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: