We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 393cf21 commit 91643e9Copy full SHA for 91643e9
Jenkinsfile
@@ -215,7 +215,7 @@ spec:
215
echo "IMAGE_NAME=$(basename -s .git `git config --get remote.origin.url` | tr '[:upper:]' '[:lower:]' | sed 's/_/-/g')" > ./env-config
216
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]+-${BRANCH}.[0-9]+$)" ]]
+ [[ $(git describe --tag `git rev-parse HEAD`) =~ "(^[0-9]+.[0-9]+.[0-9]+-.*[.][0-9]+$)" ]]
219
then
220
echo "Latest commit is already tagged"
221
echo "IMAGE_VERSION=$(git describe --abbrev=0 --tags)" >> ./env-config
0 commit comments