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

Commit 86c5143

Browse files
authored
Merge pull request #424 from thaJeztah/19.03_fix_engine_build_branch
[19.03] Jenkinsfile: fix image-based engine using wrong branch Upstream-commit: dd6130cdc679c9c7cd5e63e3877fe3c545693ece Component: packaging
2 parents c3d8c34 + 811ee1c commit 86c5143

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)