Jenkins Environment setup under Mac

Source: Internet
Author: User

This has been a few days of continuous integration work, it is inevitable to contact Jenkins, below to write about Jenkins in the Mac OS environment of the building and configuration.

1. Tomcat download

Download the required version of Tomcat to Apache official website address: http://apache.mirrors.ionfish.org/tomcat/ Note: Download the binary version under the bin/path, download the SRC version, What is contained in the inside is not complete.

Download and unzip the 8.5 version code example:

wget http://apache.mirrors.ionfish.org/tomcat/tomcat-8/v8.5.5/bin/ apache-tomcat-8.5.5.tar.gztar zxvf apache-tomcat-8.5. 5. tar. gz

2. Download Jenkins

Go to Jenkins official website to download the latest version of the. War Package

Jenkins official website: https://jenkins.io/

wget http://Mirrors.jenkins-ci.org/war-stable/latest/jenkins.war

3. Configuring Jenkins and Tomcat

Write setevn.sh in the Tomcat Bin directory with the following: Export jenkins_home= ' JENKINS HOME path you want to set '

Then change all the sh files to executables and place Jenkins.war in WebApps and name Root.war, then bin/startup.sh:

chmod 777 *. SH CD.. /webapps/RM -RF ROOTMV . /.. /jenkins.war./root.warcd . /bin. /start. SH

After successful startup, open the browser to access the corresponding machine IP 8080 port.

Note See if the 8080 port of the machine is occupied by another program.

PS: Be sure to configure the Java environment in advance, you can install it using brew install Java.

Jenkins Environment setup under Mac

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.