jenkins: added git prune option when fetching tags

BugzID: 69317

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
Marc Mattmueller 2020-12-02 18:14:07 +01:00
parent fb172f496b
commit 40d2f5ec14
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -116,7 +116,7 @@ def handle_submodules(versionParam) {
} }
def build_version(versionParam) { def build_version(versionParam) {
sh 'git fetch -t' sh 'git fetch -t -p'
def gitCmd = "git describe --tags" def gitCmd = "git describe --tags"
if(!isRelease(versionParam)) { if(!isRelease(versionParam)) {
gitCmd = "${gitCmd} --dirty" gitCmd = "${gitCmd} --dirty"