0 votes
1 view
in Devops and Agile by (28.1k 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 (20k 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 !