An error “Unable to create the home directory ‘JENKINS_HOME’”

0 votes
I tried starting Jenkins on another user,

the jenkins war is running on a tomcat, killing the server and restarting after exporting JENKINS_HOME is giving me an error “Unable to create the home directory ‘JENKINS_HOME’”
Jul 19, 2018 in Jenkins by Nilesh
• 6,880 points
70 views

1 answer to this question.

0 votes

This is most probably a permission problem.

You can use the following way to start Jenkins on another user

 Set an Environment Variable JENKINS_HOME pointing to the .jenkinsfolder and run the Jenkins command.

The shell should be like

export JENKINS_HOME=/usr/jhon/.jenkins
java -jar jenkins.war

The batch should be like

SET JENKINS_HOME=C:\users\jhon\.jenkins
 java -jar jenkins.war
answered Jul 19, 2018 by Kalgi
• 2,620 points

Related Questions In Jenkins

0 votes
1 answer

Unable to start the virtual machine

It looks like that Host-Only Adapter is ...READ MORE

answered Dec 19, 2018 in Jenkins by Alan
39 views
+4 votes
7 answers

How to set the pipeline name and description for a Jenkinsfile?

You can rename pipeline jobs in jenkins ...READ MORE

answered Oct 11, 2018 in Jenkins by Hannah
• 16,220 points
8,219 views
0 votes
1 answer

unable to compile java code in Jenkins

If the code is compiling and running ...READ MORE

answered Apr 25, 2018 in Jenkins by DareDev
• 6,810 points
276 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
211 views
0 votes
1 answer
0 votes
2 answers

How can I point Jenkins to another .jenkins home directory?

Here are the options you have: a) Assuming ...READ MORE

answered Aug 7 in Jenkins by Sirajul
• 37,360 points
369 views
0 votes
1 answer

How to rebuild an item on Jenkins pipeline

Yes you can, its pretty simple actually. Go ...READ MORE

answered Jul 10, 2018 in Jenkins by Kalgi
• 2,620 points
296 views