8000 Update Jenkinsfile · WoodProgrammer/dockerJenkinsBlog@a897641 · GitHub
[go: up one dir, main page]

Skip to content

Commit a897641

Browse files
Update Jenkinsfile
1 parent 85411cf commit a897641

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Jenkinsfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
node {
2-
2+
DISPLAY_BRANCH = sh ( script: "echo $branch|cut -d '/' -f 3", returnStdout:true).trim()
33
stage("Git Checkout"){
4-
5-
sh "echo Hello $branch"
4+
5+
6+
currentBuild.displayName = "#${BUILD_NUMBER} - ${DISPLAY_BRANCH}"
67
}
78
stage("Build"){
8-
sh "echo HiBro!"
9-
sh "echo HiBro!"
10-
sh "echo HiBro!"
11-
sh "echo NewBranch!"
9+
sh "echo New Branch"
10+
sh "echo New Branch"
11+
sh "echo New Branch"
12+
sh "echo New Branch"
1213

13-
1414
}
1515

1616
}

0 commit comments

Comments
 (0)
0