We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b969d4f commit 8b2172bCopy full SHA for 8b2172b
vars/withChownWorkspace.groovy
@@ -5,9 +5,9 @@ def call(Closure body=null) {
5
} finally {
6
try {
7
echo "chowning workspace"
8
- def arch = sh(script: "docker version -f '{{ .Server.Arch }}'", returnStdout: true).trim()
+ def arch = sh(script: "uname -m", returnStdout: true).trim()
9
def image = "busybox"
10
- if (arch == "arm") {
+ if (arch.startsWith("arm")) {
11
image = "armhf/busybox"
12
} else if (arch == "ppc64le" || arch == "s390x") {
13
image = "${arch}/busybox"
0 commit comments