Skip to content

Commit

Permalink
Fetch tags for goreleaser (#782)
Browse files Browse the repository at this point in the history
Goreleaser can find what was the previously released tag if tags are
present, and then build the changelog from this version.
  • Loading branch information
jsoriano authored Apr 6, 2022
1 parent 6a600dc commit d334501
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ pipeline {
dir("${BASE_DIR}"){
withMageEnv(){
withCredentials([string(credentialsId: "${GITHUB_TOKEN_CREDENTIALS}", variable: 'GITHUB_TOKEN')]) {
// Ensure that tags are present so goreleaser can build the changelog from the last release.
gitCmd(cmd: 'fetch', args: '--unshallow --tags')
sh 'curl -sL https://git.io/goreleaser | bash'
}
}
Expand Down

0 comments on commit d334501

Please sign in to comment.