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

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

XMLWordPrintable

    • 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

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

              Created:
              Updated:
              Resolved: