jenkins: added git prune option when fetching tags
BugzID: 69317 Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
parent
fb172f496b
commit
40d2f5ec14
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue