diff --git a/Jenkinsfile b/Jenkinsfile index d282f711807a..edff446e1cf8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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}") @@ -975,6 +977,11 @@ def installTools() { } } +def is32bit(){ + def labels = env.NODE_LABELS + return labels.contains('i386') +} + def goos(){ def labels = env.NODE_LABELS