Install Jenkins
Installing JDK
Yum-y Install java-1.8.0-openjdk*
java-version
Configure Java_home
JAVA_HOME=/USR/LIB/JVM/JAVA-1.8.0-OPENJDK
path= $JAVA _home/bin: $PATH
classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
export java_home
export PATH
export CLASSPATH
Save the appeal configuration to/etc/profile, and then source/etc/profile it into effect. Install Jenkins
# Add Jenkins software source
wget-o/etc/yum.repos.d/jenkins.repo Http://pkg.jenkins-ci.org/redhat/jenkins.repo
rpm-- Import Http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
# Install Jenkins
Yum install Jenkins
# Configure boot
chkconfig Jenkins on
# start Jenkins
Service Jenkins start
This is where the Jenkins ver.2.100 version is installed, and then the ip:8080 is opened in the browser, which is initialized with the prompts. Install maven
Yum Install Mvn-y
Install git
Yum Install Git-y
Install ansible
Yum Update
yum install python-pip
pip install ansible
Reference Articles
How-to-install-and-configure-jenkins-on-centos-6-4
Step by step using Jenkins,ansible,supervisor to build a Web build publishing system