From 666941cb74ddffc4e90a9df74ea9954ed20a3500 Mon Sep 17 00:00:00 2001 From: mtojek Date: Mon, 2 Aug 2021 17:32:19 +0200 Subject: [PATCH 1/2] Fix: use mage env with goreleaser --- .ci/Jenkinsfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.ci/Jenkinsfile b/.ci/Jenkinsfile index c5bf92df46..5b08843bc4 100644 --- a/.ci/Jenkinsfile +++ b/.ci/Jenkinsfile @@ -74,9 +74,11 @@ pipeline { tag pattern: '(v)?\\d+\\.\\d+\\.\\d+', comparator: 'REGEXP' } steps { - withCredentials([string(credentialsId: "${GITHUB_TOKEN_CREDENTIALS}", variable: 'GITHUB_TOKEN')]) { - dir("${BASE_DIR}") { - sh 'curl -sL https://git.io/goreleaser | bash' + withMageEnv(){ + withCredentials([string(credentialsId: "${GITHUB_TOKEN_CREDENTIALS}", variable: 'GITHUB_TOKEN')]) { + dir("${BASE_DIR}") { + sh 'curl -sL https://git.io/goreleaser | bash' + } } } } From debee571c9b1b72c6265c3001f8b833f02a8e145 Mon Sep 17 00:00:00 2001 From: mtojek Date: Mon, 2 Aug 2021 18:35:18 +0200 Subject: [PATCH 2/2] .go-version file --- .go-version | 1 + 1 file changed, 1 insertion(+) create mode 100644 .go-version diff --git a/.go-version b/.go-version new file mode 100644 index 0000000000..278b85f97c --- /dev/null +++ b/.go-version @@ -0,0 +1 @@ +1.16.6 \ No newline at end of file