标签:jenkins安装
1、安装mavencd /opt/
rpm -ivh jdk-8u161-linux-x64.rpm
mvn --version
yum install git -y
rpm -ivh jenkins-2.109-1.1.noarch.rpm
firewall-cmd --zone=public --add-port=8080/tcp --permanent --》开放端口
firewall-cmd --reload --》重启防火墙
firewall-cmd --zone=public --list-ports --》查看开放端口
reboot
cat /var/lib/jenkins/secrets/initialAdminPassword
mvn --version
rpm -ivh jenkins-2.109-1.1.noarch.rpm
systemctl start jenkins
ps -ef| grep java
cat /var/lib/jenkins/secrets/initialAdminPassword
yum install git -y
systemctl restart jenkins
mvn -v
cd /usr/local/apache-maven-3.5.2/conf/
vim settings.xml
yum install vim -y --》安装vim编辑器
vim settings.xml
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
5、安装插件组件
1、Publish over SSH
2、Maven Integration
3、Deploy to container Plugin
标签:jenkins安装
原文地址:http://blog.51cto.com/guoshaoliang789/2115767