Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
2 views
in DevOps and Agile by (29.3k points)

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?

1 Answer

0 votes
by (50.2k points)

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

If you run an environment command in a shell then you will see the same environment variables as Jenkins shows.

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

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

Related questions

+1 vote
1 answer
+2 votes
1 answer
asked Feb 12, 2020 in DevOps and Agile by Robert (1.5k points)
0 votes
1 answer
0 votes
1 answer

Browse Categories

...