[Jenkins] Step 2: Modify the default directory

Source: Internet
Author: User

Jenkins is easy to build. There are many tutorials on the Internet. I downloaded the war package and put it under tomcat.

Configuration environment: centos 5.1 jdk1.6.2 Tomcat 7.0.55

========================================================== ====================

Because Jenkins stores files in the. Jenkins folder in the user's home directory by default, for example, Linux Root User:/root/. Jenkins

There are three ways to modify it: (1) modify the Catalina. Sh file of Tomcat, (2) modify the Web. xml configuration file of Jenkins. War,

I use the following method:

Log on to the root user and edit the profile file: VI/etc/profile. Add: Export jenkins_home =/usr/Jenkins to the file and save the file. Finally, run: Source/etc/profile to make the configuration take effect.

 

After modification, restart tomcat or Jenkins!

========================================================== ====================

This is my environment variable configurationVI/etc/profile

Export java_home =/usr/Java/jdk1.6.0 _ 21
Export java_bin =/usr/Java/jdk1.6.0 _ 21/bin
Export svnpath =/usr/local/SVN
Export Path = $ path: $ java_home/bin: $ java_home/JRE/bin: $ svnpath/bin
Export classpath =.: $ java_home/lib: $ java_home/JRE/lib
Export jre_home = $ java_home/JRE
Export jenkins_home =/usr/Jenkins
Export java_home java_bin path classpath jre_home jenkins_home svnpath

[Jenkins] Step 2: Modify the default directory

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.