0

I am aware that I can set a global environment variable in Manage Jenkins --> Configure System --> Global properties.

But I wanted to set the global environment variable in a Jenkins Pipeline Job that shared among all Jenkins Job.

Please help

Qwerty
  • 207
  • 1
  • 4
  • 10
  • Do you want to set the variable by some scripting (e.g. script console) or does it really need to be a pipeline job? I‘m curious about the use case. – Joerg S Nov 13 '18 at 05:16
  • @JoergS Pipeline job will be easier for the developer to build the job without going into the script console or system configuration. – Qwerty Nov 13 '18 at 06:24
  • Have you read [this](https://jenkins.io/doc/pipeline/tour/environment/) and [that](https://stackoverflow.com/questions/41604854/environment-variable-in-jenkins-pipeline). – JGK Nov 13 '18 at 18:41
  • Possible duplicate of [Environment variable in Jenkins Pipeline](https://stackoverflow.com/questions/41604854/environment-variable-in-jenkins-pipeline) – JGK Nov 13 '18 at 18:41

0 Answers0