From d3345012cf5ce4c565abdc4917c5258dee4fec71 Mon Sep 17 00:00:00 2001 From: Jaime Soriano Pastor Date: Wed, 6 Apr 2022 12:22:24 +0200 Subject: [PATCH] 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. --- .ci/Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.ci/Jenkinsfile b/.ci/Jenkinsfile index 44df0bc5f..6824eb22b 100644 --- a/.ci/Jenkinsfile +++ b/.ci/Jenkinsfile @@ -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' } }