Linux environment changes the home directory of Jenkins

Source: Internet
Author: User

Linux environment changes the home directory of Jenkins

In a Linux environment, the Jenkins home directory defaults to/root/.jenkins

Jenkins stores all the data files in this directory. There are several ways that you can change this:

1. Use your Web container's administration tool to set the jenkins_home environment parameters.

Open the Tomcat Bin directory and edit the catalina.sh file. In # OS specific support.  $var _must_ is set to either true or false. Added above: Export jenkins_home= "/data/jenkins_home/"

2. Set the jenkins_home environment variable before starting the Web container.

Edit the profile with the root user: Vi/etc/profile in the last join: Export jenkins_home=/data/jenkins_home after exiting: source  /etc/ Profile allows configuration to take effect

Linux environment changes the home directory of Jenkins

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.