Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
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

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...