Skip to content

Commit a088826

Browse files
committed
Add more description for this project
1 parent 014f120 commit a088826

4 files changed

Lines changed: 26 additions & 8 deletions

File tree

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
target
22
*.iml
33
.idea
4+
5+
.project
6+
.classpath
7+
.settings
8+
bin

Jenkinsfile renamed to Jenkinsfile-junit-k8s

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ pipeline {
1212
stage('Build & Test'){
1313
steps{
1414
script{
15-
try {
16-
container('java'){
17-
sh 'mvn clean package test'
18-
}
19-
} catch(e) {
15+
container('java'){
2016
sh 'mvn clean package test'
2117
}
2218
}
@@ -30,7 +26,7 @@ pipeline {
3026
}
3127
}
3228
steps{
33-
echo 'sf'
29+
echo 'only for demo'
3430
}
3531
}
3632
}

README-zh.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1-
本项目是 Jenkins 系列培训配套的示例项目
1+
该项目旨在提供一种轻松的方法来体验 Jenkins 流水线。
22

3-
更多请参考 https://jenkins-zh.cn/about/course/#1
3+
根据不同的使用场景,我们提供了一些 Jenkinsfile:
4+
5+
|文件|需求|描述|
6+
|---|---|---|
7+
|[Jenkinsfile-junit-k8s](Jenkinsfile-junit-k8s)|需要有一个带 `maven` 标签的代理节点。这个节点必须是在一个包含 `java` 容器的 pod 中。|生成 junit 报告。|
8+
|[Jenkinsfile-input](Jenkinsfile-input)|任何类型的节点。|需要用户输入,然后流水线才可以继续。|
9+
10+
查看更多 https://jenkins-zh.cn/about/course/#1

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
This project is aim to provide an easy way to try Jenkins pipeline.
2+
3+
According to different use cases, we provide several Jenkinsfile for you:
4+
5+
|File|Requirement|Description|
6+
|---|---|---|
7+
|[Jenkinsfile-junit-k8s](Jenkinsfile-junit-k8s)|It requires an agent which has a label `maven`. The agent should be a pod which contains a container named `java`.|Generate junit report.|
8+
|[Jenkinsfile-input](Jenkinsfile-input)|Any types of agent.|Require a user to input something, then the Pipeline will keep going.|
9+
10+
See also https://jenkins-zh.cn/about/course/#1

0 commit comments

Comments
 (0)