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