Add global variable for accessing the proxy settings in pipelines#40
Add global variable for accessing the proxy settings in pipelines#40coder-hugo wants to merge 1 commit intojenkinsci:masterfrom
Conversation
jglick
left a comment
There was a problem hiding this comment.
Probably better done as a separate plugin. Rather than a global variable, would suggest a block-scoped step setting an EnvironmentExpander with relevant environment variables—ideally the semistandard ones like http_proxy (IIRC), so typical third-party applications would be able to pick up the proxy settings without any special arguments.
| <groupId>org.jenkins-ci.plugins.workflow</groupId> | ||
| <artifactId>workflow-cps</artifactId> | ||
| <version>2.22</version> | ||
| <scope>test</scope> |
f92068e to
9001033
Compare
|
I just changed my PR according to your suggestion. There is now a step (
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. |
|
Hello, |
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.