Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in DevOps and Agile by (29.3k points)
edited by

Simple question: How to change the Jenkins home directory location? By default, it points to /var/lib/jenkins whereas I want it to point to /home/jenkins. I have changed my $JENKINS_HOMEto /home/jenkins but it doesn't help me.

1 Answer

0 votes
by (19.4k points)

Jenkins usually runs with its own user, so changing the home-dir of that user should do the job.

If not sure, simply run a test-job with a shell-command like 'id' or 'whoami' or 'env' to find the user that Jenkins uses.

Also, note that a message of "Started by user anonymous" does not mean that Jenkins started as an anonymous user

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.7k users

Browse Categories

...