Skip to content

Commit 223e427

Browse files
committed
Removes quotes from regex in tag release to work on bash
1 parent 91643e9 commit 223e427

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ spec:
214214
215215
echo "IMAGE_NAME=$(basename -s .git `git config --get remote.origin.url` | tr '[:upper:]' '[:lower:]' | sed 's/_/-/g')" > ./env-config
216216
217-
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]+-.*[.][0-9]+$)" ]]
217+
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]+-.*[.][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)