DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Start Jenkins Server with Specified Home Directory


You can get the current home directory of a Jenkins server at "Manage Jenkins -> Configure System -> Home Directory".

When starting a Jenkins server, you can specify its home directory through setting environment variable JENKINS_HOME:

export JENKINS_HOME=~/.jenkins

then

java -jar <jenkins-ver.war> --httpPort=8088

or start as a daemon service:

nohup java -jar <jenkins-ver.war> --httpPort=8088 1>jenkins.log 2>jenkins.log &

When update Jenkins or install some new plugins, you may find all jobs gone. Don't be panic, it's probably because the home folder are changed (for example, ~/.hudson) by the plugins. Specify home directory as above, all jobs will come back.



Published

Jul 19, 2013

Last Updated

Jul 19, 2013

Category

Tech

Tags

  • environment variables 3
  • jenkins 26

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor