Changed git tag sort for it to work on the jenkins server.

This commit is contained in:
Amine 2018-11-17 20:48:18 +01:00
parent b59c3bcb23
commit ddac2870af

View File

@ -10,7 +10,7 @@ ext {
} }
def gitVersion() { def gitVersion() {
def process = "git for-each-ref refs/tags --sort=-taggerdate --format='%(refname:short)' --count=1".execute() def process = "git for-each-ref refs/tags --sort=-authordate --format='%(refname:short)' --count=1".execute()
return process.text.replaceAll("'", "").substring(1).replaceAll("\\.", "").trim() return process.text.replaceAll("'", "").substring(1).replaceAll("\\.", "").trim()
} }