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

chore: Reintroduce job upload-snapshot

parent 6e17b366
No related branches found
No related tags found
No related merge requests found
...@@ -99,6 +99,19 @@ deploy-to-staging: ...@@ -99,6 +99,19 @@ deploy-to-staging:
name: staging name: staging
url: https://vipscore02test.nibio.no url: https://vipscore02test.nibio.no
upload-snapshot:
stage: upload
script:
- export VERSION=$(./mvnw $MAVEN_POM_WITH_MODELS $MAVEN_CLI_OPTS $MAVEN_OPTS --batch-mode --no-transfer-progress --non-recursive help:evaluate -Dexpression=project.version | grep -v "\[.*")
- if ! [[ $VERSION =~ .*SNAPSHOT ]]; then
echo "Version '$VERSION' is not SNAPSHOT"; exit 1;
fi
- "./mvnw $MAVEN_POM_WITH_MODELS $MAVEN_CLI_OPTS $MAVEN_OPTS deploy -DskipTests"
tags:
- vips-java
rules:
- if: $CI_COMMIT_REF_NAME == $MAIN_BRANCH
deploy-to-production: deploy-to-production:
stage: deploy stage: deploy
script: script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment