Skip to content

Commit d334501

Browse files
authored
Fetch tags for goreleaser (#782)
Goreleaser can find what was the previously released tag if tags are present, and then build the changelog from this version.
1 parent 6a600dc commit d334501

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.ci/Jenkinsfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ pipeline {
121121
dir("${BASE_DIR}"){
122122
withMageEnv(){
123123
withCredentials([string(credentialsId: "${GITHUB_TOKEN_CREDENTIALS}", variable: 'GITHUB_TOKEN')]) {
124+
// Ensure that tags are present so goreleaser can build the changelog from the last release.
125+
gitCmd(cmd: 'fetch', args: '--unshallow --tags')
124126
sh 'curl -sL https://git.io/goreleaser | bash'
125127
}
126128
}

0 commit comments

Comments
 (0)