Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Where do the environment variables under Jenkins ( manage jenkins -> system information ) come from?

I checked /etc/init.d/tomcat5 , /usr/bin/dtomcat5, /usr/bin/tomcat5 , /etc/sysconfig/tomcat5 and /etc/profile but do not see any such variables there specially the ones related to Oracle ( Base, Home, Ld_lib path etc) . Tomcat's bashrc has some oracle related variables which I commented out but I still see the same in the jenkins system info page. Any directions?

question from:https://stackoverflow.com/questions/21130931/environment-variables-in-jenkins

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
219 views
Welcome To Ask or Share your Answers For Others

1 Answer

The environment variables displayed in Jenkins (Manage Jenkins -> System information) are inherited from the system (i.e. inherited environment variables)

If you run env command in a shell you should see the same environment variables as Jenkins shows.

These variables are either set by the shell/system or by you in ~/.bashrc, ~/.bash_profile.

There are also environment variables set by Jenkins when a job executes, but these are not displayed in the System Information.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

86.3k users

...