From: Yolanda Robla Date: Thu, 28 Nov 2019 11:54:09 +0000 (+0100) Subject: Bump go version to latest ones X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ci-management.git;a=commitdiff_plain;h=1bec79ea9515031faa0a6dd5853027c82b005e70 Bump go version to latest ones For latest code to run it is needed to have latest go version. So bumping that, and also adding a removal of the previous go versions that can give conflict. Signed-off-by: Yolanda Robla Change-Id: Iba8b8e5c460d9b917a96d757ba3f7c9827afcec6 --- diff --git a/jjb/shell/install_go.sh b/jjb/shell/install_go.sh index a9f6ffd..d5b344c 100755 --- a/jjb/shell/install_go.sh +++ b/jjb/shell/install_go.sh @@ -19,7 +19,7 @@ if [ -z "${GO_URL}" ]; then fi if [ -z "${GO_VERSION}" ]; then - GO_VERSION='go1.12.linux-amd64.tar.gz' + GO_VERSION='go1.13.4.linux-amd64.tar.gz' fi set -e -u -x -o pipefail @@ -28,4 +28,5 @@ echo "---> Installing golang from ${GO_URL} with version ${GO_VERSION}" # install go wget ${GO_URL}/${GO_VERSION} +sudo rm -rf /usr/local/go sudo tar -C /usr/local -xzf ${GO_VERSION}