Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 8e8ca6c

Browse files
Merge component 'packaging' from git@github.com:docker/docker-ce-packaging 19.03
2 parents 5ad9cc8 + 86c5143 commit 8e8ca6c

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

components/packaging/Jenkinsfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
#!groovy
22

33

4-
def genBranch(String arch) {
4+
def genBranch(String arch, String branch) {
55
return [
66
"${arch}": { ->
77
stage("Build engine image on ${arch}") {
8-
wrappedNode(label: "linux&&${arch}", cleanWorkspace: true) {
8+
wrappedNode(label: "linux && ${arch}", cleanWorkspace: true) {
99
try {
1010
checkout scm
11-
sh("git clone https://github.com/docker/engine.git engine")
11+
sh("git clone https://github.com/docker/engine.git")
12+
sh("git -C engine checkout $branch")
1213
sh('make ENGINE_DIR=$(pwd)/engine image')
1314
} finally {
1415
sh('make ENGINE_DIR=$(pwd)/engine clean-image clean-engine')
@@ -66,7 +67,7 @@ arches = [
6667
]
6768

6869
arches.each {
69-
test_steps << genBranch(it)
70+
test_steps << genBranch(it, branch)
7071
}
7172

7273
parallel(test_steps)

0 commit comments

Comments
 (0)