Skip to content

Commit

Permalink
ci: support 32 bits for gvm
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Jun 17, 2020
1 parent ed3874b commit 538ede0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,9 @@ def withBeatsEnvWin(Map args = [:], Closure body) {
}
final String chocoPath = 'C:\\ProgramData\\chocolatey\\bin'
final String chocoPython3Path = 'C:\\Python38;C:\\Python38\\Scripts'
def goRoot = "${env.USERPROFILE}\\.gvm\\versions\\go${GO_VERSION}.windows.amd64"
// NOTE: to support Windows 7 32 bits the arch in the go context path is required
def arch = is32bit() ? '386' : 'amd64'
def goRoot = "${env.USERPROFILE}\\.gvm\\versions\\go${GO_VERSION}.windows.${arch}"

deleteDir()
unstashV2(name: 'source', bucket: "${JOB_GCS_BUCKET}", credentialsId: "${JOB_GCS_CREDENTIALS}")
Expand Down Expand Up @@ -975,6 +977,11 @@ def installTools() {
}
}

def is32bit(){
def labels = env.NODE_LABELS
return labels.contains('i386')
}

def goos(){
def labels = env.NODE_LABELS

Expand Down

0 comments on commit 538ede0

Please sign in to comment.