Skip to content
Snippets Groups Projects
Commit a2f0dc8e authored by Lene Wasskog's avatar Lene Wasskog
Browse files

build: Make deploy job fail with exit code 1 if version is not SNAPSHOT

parent b6bbc045
No related branches found
No related tags found
No related merge requests found
Pipeline #1316 failed
......@@ -50,7 +50,7 @@ deploy-snapshot:
stage: deploy
script:
- export VERSION=$(./mvnw --batch-mode --no-transfer-progress --non-recursive help:evaluate -Dexpression=project.version | grep -v "\[.*")
- if ! [[ $VERSION =~ .*SNAPSHOT ]]; then exit 0; fi
- if ! [[ $VERSION =~ .*SNAPSHOT ]]; then exit 1; fi
- ./mvnw $MAVEN_CLI_OPTS $MAVEN_OPTS deploy -DskipTests
tags:
- vips-java
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment