Skip to content

Commit 8b2172b

Browse files
committed
fix arch because double brackets weren't working
Signed-off-by: Andrew Hsu <[email protected]>
1 parent b969d4f commit 8b2172b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vars/withChownWorkspace.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ def call(Closure body=null) {
55
} finally {
66
try {
77
echo "chowning workspace"
8-
def arch = sh(script: "docker version -f '{{ .Server.Arch }}'", returnStdout: true).trim()
8+
def arch = sh(script: "uname -m", returnStdout: true).trim()
99
def image = "busybox"
10-
if (arch == "arm") {
10+
if (arch.startsWith("arm")) {
1111
image = "armhf/busybox"
1212
} else if (arch == "ppc64le" || arch == "s390x") {
1313
image = "${arch}/busybox"

0 commit comments

Comments
 (0)