jenkinsci / jenkinsci/workflow-basic-steps-plugin

[JENKINS-53433] withEnv case wrong variable modified.

Open
#470 0 comments 0 reactions 0 assignees View on GitHub
component:workflow-basic-steps-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
73
Forks
129
PR merge metrics
No merged PRs in 30d

Description

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.

---
Originally reported by kfox1111, imported from: withEnv case wrong variable modified.


  • status: Open
  • priority: Minor
  • component(s): workflow-basic-steps-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251215-220547

Raw content of original issue

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.