workflow-basic-steps-plugin icon indicating copy to clipboard operation
workflow-basic-steps-plugin copied to clipboard

Add global variable for accessing the proxy settings in pipelines

Open coder-hugo opened this issue 7 years ago • 2 comments

I haven't found any existing solution for this and I also haven't got an answer for my question in the jenkins-users group. Therefore I just implemented a global variable that provides access to the Jenkins proxy settings in pipelines. I think this plugin is a good place for such a variable. But if you are thinking differently I can move this also to a separate plugin.

coder-hugo avatar Apr 01 '17 16:04 coder-hugo

I just changed my PR according to your suggestion. There is now a step (withHttpProxyEnv) that provides the global proxy settings as the following environment variables:

  • http_proxy/HTTP_PROXY
  • https_proxy/HTTPS_PROXY
  • no_proxy/NO_PROXY

I add both the lower case and the upper case format as there are commands that like just the lower case format and others that just like the upper case one.

coder-hugo avatar Jul 23 '17 17:07 coder-hugo

Hello, Is this fix about to be merged? is there another solution for this problem? Thanks!

shiranhonigFiverr avatar Oct 25 '17 14:10 shiranhonigFiverr