Skip to content

Commit 53e36df

Browse files
authored
Merge pull request kubesphere#66 from PeiHongbing1223/dev
Correct the wrong order number in the readme file
2 parents 67ac340 + 1407474 commit 53e36df

1 file changed

Lines changed: 6 additions & 23 deletions

File tree

README.md

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Jenkinsfile in SCM 意为将 Jenkinsfile 文件本身作为源代码管理 (Sour
1212

1313
## 项目使用
1414

15-
* 项目完成fork后,根据教程修改 Jenkinsfile-online中的环境变量为您自己值
15+
* 项目完成fork后,根据教程修改 Jenkinsfile-online中的环境变量为您自己的值
1616

1717

1818

@@ -31,7 +31,7 @@ Jenkinsfile in SCM 意为将 Jenkinsfile 文件本身作为源代码管理 (Sour
3131
label 'maven' // 定义流水线的代理为 maven,kubesphere内置了四个默认代理,在目前版本当中我们内置了 4 种类型的 podTemplate,base、 // nodejs、maven、go,并且在 Pod 中提供了隔离的 Docker 环境。具体参见官方文档
3232
}
3333
}
34-
34+
3535
parameters {
3636
string(name:'TAG_NAME',defaultValue: '',description:'') //定义 流水线描述
3737
}
@@ -71,24 +71,7 @@ Jenkinsfile in SCM 意为将 Jenkinsfile 文件本身作为源代码管理 (Sour
7171
}
7272
```
7373

74-
* **第三步** 执行单元测试
75-
76-
```yaml
77-
stage('push latest'){
78-
when{
79-
branch 'master'
80-
}
81-
steps{
82-
container ('maven') {
83-
sh 'docker tag $REGISTRY/$DOCKERHUB_NAMESPACE/$APP_NAME:SNAPSHOT-$BRANCH_NAME-$BUILD_NUMBER $REGISTRY/$DOCKERHUB_NAMESPACE/$APP_NAME:latest '
84-
sh 'docker push $REGISTRY/$DOCKERHUB_NAMESPACE/$APP_NAME:latest '
85-
}
86-
}
87-
}
88-
89-
```
90-
91-
* **第四步** 编译并推送
74+
* **第三步** 编译并推送
9275

9376
```yaml
9477
stage ('build & push') {
@@ -105,7 +88,7 @@ Jenkinsfile in SCM 意为将 Jenkinsfile 文件本身作为源代码管理 (Sour
10588
}
10689
```
10790

108-
* **第五步** 推送至docker hub latest版本
91+
* **第四步** 推送至docker hub latest版本
10992

11093
```yaml
11194
stage('push latest'){
@@ -122,7 +105,7 @@ Jenkinsfile in SCM 意为将 Jenkinsfile 文件本身作为源代码管理 (Sour
122105

123106
```
124107

125-
* **第六步** 弹出审核确认,是否部署到开发环境
108+
* **第五步** 弹出审核确认,是否部署到开发环境
126109

127110
```yaml
128111
stage('deploy to dev') {
@@ -156,7 +139,7 @@ Jenkinsfile in SCM 意为将 Jenkinsfile 文件本身作为源代码管理 (Sour
156139
}
157140
```
158141

159-
* **第七步** 部署到生产环境
142+
* **第六步** 部署到生产环境
160143

161144
```yaml
162145
stage('deploy to production') {

0 commit comments

Comments
 (0)