diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 935c5d448fdf0efc8ea93e1d4ab11b5f70978710..904a6cd139b880de12ed25d7d6f8998d4076f55a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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