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

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

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