From 4b3f3047ac8ca73fce1ac35424106c4a64e84b85 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Thu, 9 Jan 2020 13:02:30 +0000 Subject: [PATCH] ci(jenkins): Install latest golang version for Windows (#702) --- Jenkinsfile | 3 --- scripts/jenkins/windows/install-tools.bat | 5 ++++- scripts/jenkins/windows/uninstall-tools.bat | 5 ----- 3 files changed, 4 insertions(+), 9 deletions(-) delete mode 100755 scripts/jenkins/windows/uninstall-tools.bat diff --git a/Jenkinsfile b/Jenkinsfile index 476e498da..f92082c10 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -167,9 +167,6 @@ pipeline { post { always { junit(allowEmptyResults: true, keepLongStdio: true, testResults: "${BASE_DIR}/build/junit-*.xml") - dir("${BASE_DIR}"){ - bat script: 'scripts/jenkins/windows/uninstall-tools.bat', label: 'Uninstall tools' - } cleanWs(disableDeferredWipeout: true, notFailBuild: true) } } diff --git a/scripts/jenkins/windows/install-tools.bat b/scripts/jenkins/windows/install-tools.bat index b0ba98683..d13ccc4cc 100755 --- a/scripts/jenkins/windows/install-tools.bat +++ b/scripts/jenkins/windows/install-tools.bat @@ -3,4 +3,7 @@ :: choco config set cacheLocation %WORKSPACE% -choco install golang --version %GO_VERSION% -y --no-progress +:: Install latest as long as https://github.com/chocolatey/chocolatey.org/issues/803 +:: is not resolved. +:: choco install golang --version %GO_VERSION% -y --no-progress +choco install golang -y --no-progress diff --git a/scripts/jenkins/windows/uninstall-tools.bat b/scripts/jenkins/windows/uninstall-tools.bat deleted file mode 100755 index 05214be7d..000000000 --- a/scripts/jenkins/windows/uninstall-tools.bat +++ /dev/null @@ -1,5 +0,0 @@ -:: -:: This script install the required tools -:: - -choco uninstall golang --version %GO_VERSION% -y