Skip to content

Commit e1c0ac3

Browse files
authored
Fix: use mage env with goreleaser (#457)
* Fix: use mage env with goreleaser * .go-version file
1 parent e665fb2 commit e1c0ac3

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.ci/Jenkinsfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,11 @@ pipeline {
7474
tag pattern: '(v)?\\d+\\.\\d+\\.\\d+', comparator: 'REGEXP'
7575
}
7676
steps {
77-
withCredentials([string(credentialsId: "${GITHUB_TOKEN_CREDENTIALS}", variable: 'GITHUB_TOKEN')]) {
78-
dir("${BASE_DIR}") {
79-
sh 'curl -sL https://git.io/goreleaser | bash'
77+
withMageEnv(){
78+
withCredentials([string(credentialsId: "${GITHUB_TOKEN_CREDENTIALS}", variable: 'GITHUB_TOKEN')]) {
79+
dir("${BASE_DIR}") {
80+
sh 'curl -sL https://git.io/goreleaser | bash'
81+
}
8082
}
8183
}
8284
}

.go-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.16.6

0 commit comments

Comments
 (0)