Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
+2 votes
2 views
in DevOps and Agile by (1.5k points)

Where does environment variables under the Jenkins come from?

I have checked the paths : "/etc/init.d/tomcat5" , "/usr/bin/dtomcat5", "/usr/bin/tomcat5" , "/etc/sysconfig/tomcat5", and, "/etc/profile" but couldn't see any environment variable in them especially, the ones that are related to Oracle ( Home, Ld_lib , Base,  path etc) .
The bashrc of Tomcat is having some of the oracle-related variables which I have commented out, but I still see no change in system information page of Jenkins. Any solutions for this?

closed

1 Answer

+2 votes
by (7.5k points)
selected by
 
Best answer

Environment variables that are displayed in the Jenkins in the "System Information" are inherited from the system making them the inherited environment variables.

When you run a env command in a shell, you could see same environment variables as the Jenkins shows.

These environment variables are set either by the system ,or, by you in the

~/.bashrc, ~/.bash_profile.

Also, when a job executes, there are environment variables that are set by Jenkins. Although, these aren't displayed in the System Information.

Checkout this Jenkins Certification course to get certified.

Have a Nice day!

Related questions

+1 vote
1 answer
+1 vote
1 answer
0 votes
1 answer
asked Jan 18, 2020 in AWS by R. Raman (790 points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...