jenkins: separated git prune and git fetch tags

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
Marc Mattmueller 2020-12-03 12:48:32 +01:00
parent 40d2f5ec14
commit f8e353fa59
1 changed files with 2 additions and 1 deletions

3
Jenkinsfile vendored
View File

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