Always only return the last part of a branch

Not applying this causes certain environments (such as a local instance) to build artifacts in subdirectories with shortened names.
This commit is contained in:
TheGlitch76 2019-12-27 17:32:40 -06:00 committed by Player
parent 90fe97f88e
commit 3c664f3a9c

View file

@ -39,7 +39,8 @@ def getBranch(){
if (grgit == null) {
return "unknown"
}
return grgit.branch.current().name
def branch = grgit.branch.current().name
return branch.substring(branch.lastIndexOf("/") + 1)
}
allprojects {