From f148c09563d2ac1b3c6fd7052330ad785353961f Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Fri, 21 Apr 2017 02:36:14 +0200 Subject: [PATCH] Jenkinsfile: Replace UPX regex cases with constant strings. --- Jenkinsfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4a15e6a..103fb07 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,10 +12,14 @@ def upx(file) { tool "UPX v3.91" switch("${env.GOOS}.${env.GOARCH}") { - case ~/linux\.(amd64|386)/: - case ~/darwin\.(amd64|arm)/: - case ~/windows\..+/: - case ~/.+bsd\.386/: + case "linux.amd64": + case "linux.386": + case "darwin.amd64": + case "darwin.arm": + case "windows.amd64": + case "windows.386": + case "freebsd.386": + case "netbsd.386": if (env.GOOS == "linux") { sh "GOOS= GOARCH= go get -v github.com/pwaller/goupx" sh "goupx --no-upx \"$file\""