Skip to content

Commit 4bc7063

Browse files
committed
fix version detection again
1 parent 288eaa1 commit 4bc7063

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/ci/jenkins/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ rm -rf _CPack_Packages *.tar.bz2 *.zip CMakeFiles CMakeCache.txt
5252
RTTR_VERSION=OFF
5353
if [ "$deploy_to" == "stable" ] ; then
5454
GIT_TAG=$(git -C $src_dir describe --all --exact-match 2>/dev/null || true)
55-
if [ -z "$GIT_TAG" ] || [[ ! "$GIT_TAG" =~ v[0-9]+\.[0-9]+\.[0-9]+ ]] ; then
55+
if [ -z "$GIT_TAG" ] || [[ ! "$GIT_TAG" =~ tags/v[0-9]+\.[0-9]+\.[0-9]+ ]] ; then
5656
echo "Tried to publish to stable, but no Git TAG 'vX.Y.Z' was found: $(git -C $src_dir describe --all --exact-match 2>&1)" >&2
5757
exit 1
5858
fi
59-
RTTR_VERSION=${GIT_TAG#"v"}
59+
RTTR_VERSION=${GIT_TAG#"tags/v"}
6060
echo "Using RTTR_VERSION from GIT_TAG: $RTTR_VERSION" >&2
6161
fi
6262

0 commit comments

Comments
 (0)