Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
QA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mayi-operation
QA
Commits
7f1387fa
Commit
7f1387fa
authored
Mar 12, 2019
by
ChongmingDu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update jenkins doc
parent
f286db61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
部署Jenkins.md
+19
-7
No files found.
部署Jenkins.md
View file @
7f1387fa
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
2.
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
3.
yum install jenkins -y
1.
安装jenkins的yum源
```
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,输入。等等
5.
安装插件
5.
安装
所需要的
插件
-
Active Choices Plug-in
-
Ansible plugin
-
Ant Plugin
...
...
@@ -16,12 +25,15 @@
创建一个maven项目
![
avatar
](
./images/commons.png
)
![
avatar
](
./images/commons2.png
)
输入git地址
![
avatar
](
./images/commons3.png
)
# mayi-service
运行打包命令
# mayi-service(根据项目按需改动)
创建一个pipeline项目
![
avatar
](
./images/service1.png
)
![
avatar
](
./images/service2.png
)
![
avatar
](
./images/service3.png
)
设置选项参数
![
avatar
](
./images/service4.png
)
![
avatar
](
./images/service45.png
)
![
avatar
](
./images/service5.png
)
...
...
@@ -122,7 +134,7 @@ pipeline {
}
}
```
# restart script(mayi-service配置后必须配置)
# restart script(mayi-service配置后必须配置)
(根据项目按需改动)
## 复制的内容
```
if (app.equals("pos")){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment