Skip to content

Commit b49d5d8

Browse files
committed
Fix missing tags
1 parent 979f480 commit b49d5d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vars/mavenCiPipeline.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def call(Closure closure) {
4242
}
4343

4444
// Get Git Information
45+
sh "git fetch origin --tags"
4546
def gitSha1 = sh(returnStdout: true, script: 'git rev-parse HEAD').trim()
4647
def gitAuthor = env.CHANGE_AUTHOR ? env.CHANGE_AUTHOR : sh(returnStdout: true, script: 'git log -1 --format="%aN" HEAD').trim()
4748
def gitAuthorEmail = env.CHANGE_AUTHOR_EMAIL ? env.CHANGE_AUTHOR_EMAIL : sh(returnStdout: true, script: 'git log -1 --format="%aE" HEAD').trim()

0 commit comments

Comments
 (0)