Skip to content

Commit 91643e9

Browse files
committed
Updates regex
1 parent 393cf21 commit 91643e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ spec:
215215
echo "IMAGE_NAME=$(basename -s .git `git config --get remote.origin.url` | tr '[:upper:]' '[:lower:]' | sed 's/_/-/g')" > ./env-config
216216
217217
if [[ "${BRANCH}" == "master" ]] && [[ $(git describe --tag `git rev-parse HEAD`) =~ "(^[0-9]+.[0-9]+.[0-9]+$)" ]] || \
218-
[[ $(git describe --tag `git rev-parse HEAD`) =~ "(^[0-9]+.[0-9]+.[0-9]+-${BRANCH}.[0-9]+$)" ]]
218+
[[ $(git describe --tag `git rev-parse HEAD`) =~ "(^[0-9]+.[0-9]+.[0-9]+-.*[.][0-9]+$)" ]]
219219
then
220220
echo "Latest commit is already tagged"
221221
echo "IMAGE_VERSION=$(git describe --abbrev=0 --tags)" >> ./env-config

0 commit comments

Comments
 (0)