Commit 7f1387fa by ChongmingDu

update jenkins doc

parent f286db61
1. sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo 1. 安装jenkins的yum源
1. sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo 1. 安装jenkins的yum源
2. sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key ```
3. yum install jenkins -y sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
```
2. 安装验证源的key
```
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
```
3. 安装jenkins
```
yum install jenkins -y
```
4. 根据指引操作,到服务器上获取token,输入。等等 4. 根据指引操作,到服务器上获取token,输入。等等
5. 安装插件 5. 安装所需要的插件
- Active Choices Plug-in - Active Choices Plug-in
- Ansible plugin - Ansible plugin
- Ant Plugin - Ant Plugin
...@@ -16,12 +25,15 @@ ...@@ -16,12 +25,15 @@
创建一个maven项目 创建一个maven项目
![avatar](./images/commons.png) ![avatar](./images/commons.png)
![avatar](./images/commons2.png) ![avatar](./images/commons2.png)
输入git地址
![avatar](./images/commons3.png) ![avatar](./images/commons3.png)
# mayi-service 运行打包命令
# mayi-service(根据项目按需改动)
创建一个pipeline项目 创建一个pipeline项目
![avatar](./images/service1.png) ![avatar](./images/service1.png)
![avatar](./images/service2.png) ![avatar](./images/service2.png)
![avatar](./images/service3.png) ![avatar](./images/service3.png)
设置选项参数
![avatar](./images/service4.png) ![avatar](./images/service4.png)
![avatar](./images/service45.png) ![avatar](./images/service45.png)
![avatar](./images/service5.png) ![avatar](./images/service5.png)
...@@ -122,7 +134,7 @@ pipeline { ...@@ -122,7 +134,7 @@ pipeline {
} }
} }
``` ```
# restart script(mayi-service配置后必须配置) # restart script(mayi-service配置后必须配置)(根据项目按需改动)
## 复制的内容 ## 复制的内容
``` ```
if (app.equals("pos")){ if (app.equals("pos")){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment