Utiliser git describe pour récupérer le tag en fonction de la branche active.

Ref #4
This commit is contained in:
Benjamin Bohard 2018-03-21 11:14:16 +01:00
parent 71f2bb767f
commit 60b0eaad53
1 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,8 @@ tamarin_debug "BUILD TAG IS ${BUILD_TAG}"
if [[ ${BUILD_TAG} == "last" ]]
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
tagbranch="build-tag-${BUILD_TAG}"
git checkout -b ${tagbranch}