Manage Jenkins --> Global properties --> Environment variables works for us.

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of 3lp
Sent: 23 October 2012 10:32
To: jenkinsci-users@googlegroups.com
Subject: environment variables for 'Execute shell' steps in Jenkins jobs

Hi,

It would be nice to set up environment variables for Jenkins that can be used 
across all jobs. I am running Jenkins in Tomcat on Linux. It does not seem to 
be possible to do this within Jenkins or Tomcat configuration. I had thought 
that adding an <Environment> entry to the context.xml in the Tomcat 
configuration would do it, but this appears to set some kind of java 
environment variable. Is there something I am missing here? It would simplify 
the large number of job files I am setting up if environment variables could be 
factored out into a (jenkins-) global context.

Thanks

Reply via email to