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

withEnv case wrong variable modified.

XMLWordPrintable

      I have a system on which both NO_PROXY and no_proxy are defined already.

      I have a program I am trying to execute in my pipeline that reads only NO_PROXY.

      I tried to override NO_PROXY like:

      withEnv(["NO_PROXY=$NO_PROXY,otherthingy"])

      {   sh 'program' }

      but it mistakenly edits the 'no_proxy' version instead, not touching the NO_PROXY one.

            Unassigned Unassigned
            kfox1111 Kevin Fox
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: