Utiliser git describe pour récupérer le tag en fonction de la branche active.
Ref #4
This commit is contained in:
parent
71f2bb767f
commit
60b0eaad53
|
@ -15,7 +15,8 @@ tamarin_debug "BUILD TAG IS ${BUILD_TAG}"
|
||||||
|
|
||||||
if [[ ${BUILD_TAG} == "last" ]]
|
if [[ ${BUILD_TAG} == "last" ]]
|
||||||
then
|
then
|
||||||
tags=$(git tag master -l "release/*" | tr '_' '-' | sort -rV)
|
#tags=$(git tag master -l "release/*" | tr '_' '-' | sort -rV)
|
||||||
|
tags=$(git describe --match "release/*" --abbrev=0)
|
||||||
else
|
else
|
||||||
tagbranch="build-tag-${BUILD_TAG}"
|
tagbranch="build-tag-${BUILD_TAG}"
|
||||||
git checkout -b ${tagbranch}
|
git checkout -b ${tagbranch}
|
||||||
|
|
Loading…
Reference in New Issue