Jenkinsfile: Fix UPX not available in PATH error.

pull/10/head
Icedream 2017-04-21 02:43:44 +02:00
parent 6f7b4daa7e
commit 15c418e9b6
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 20 additions and 20 deletions

4
Jenkinsfile vendored
View File

@ -9,8 +9,7 @@ def binext(os) {
def upx(file) { def upx(file) {
// Install upx // Install upx
tool "UPX v3.91" withEnv(["PATH+=${tool "UPX v3.91"}"]) {
switch("${env.GOOS}.${env.GOARCH}") { switch("${env.GOOS}.${env.GOARCH}") {
case "linux.amd64": case "linux.amd64":
case "linux.386": case "linux.386":
@ -31,6 +30,7 @@ def upx(file) {
break break
} }
} }
}
def withGoEnv(os, arch, f) { def withGoEnv(os, arch, f) {
// Install go // Install go