Skip to content
Snippets Groups Projects
Commit 4627ec17 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 ad45cffe
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,8 @@ test:
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 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