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 created issue -
          Carlos Sanchez made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          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
          Carlos Sanchez made changes -
          Link New: This issue is related to JENKINS-42582 [ JENKINS-42582 ]
          Carlos Sanchez made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]

          Oleg Nenashev added a comment -

          Hit it in my test instance

          Oleg Nenashev added a comment - Hit it in my test instance
          Oleg Nenashev made changes -
          Remote Link New: This issue links to "https://github.com/jenkinsci/kubernetes-plugin/pull/301 (Web Link)" [ 20334 ]
          Carlos Sanchez made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]
          James Dumay made changes -
          Remote Link New: This issue links to "CloudBees Internal ARC-190 (Web Link)" [ 20540 ]

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

              Created:
              Updated:
              Resolved: