Skip to content
Snippets Groups Projects
Commit 3db3adf0 authored by Jan Zickermann's avatar Jan Zickermann
Browse files

#1 Publish snapshot only on main branch

parent fbe7703b
Branches
Tags
No related merge requests found
Pipeline #1069 passed
......@@ -19,27 +19,40 @@ cache:
stages:
- build
- test
- publish
verify:
build:
stage: build
script:
- echo "mvn verify $MAVEN_CLI_OPTS"
- mvn help:effective-settings $MAVEN_CLI_OPTS
- mvn verify $MAVEN_CLI_OPTS
- mvn compile $MAVEN_CLI_OPTS
artifacts:
paths:
- target/*.jar
test:
stage: test
script:
- mvn test $MAVEN_CLI_OPTS
verify:
stage: test
script:
- mvn verify $MAVEN_CLI_OPTS
snapshot-gitlab:
stage: publish
script:
- mvn deploy -Pgitlab-deploy $MAVEN_DEPLOY_CLI_OPTS $MAVEN_CLI_OPTS
only:
- main
snapshot-nexus:
stage: publish
script:
- mvn deploy -Pnexus-deploy $MAVEN_DEPLOY_CLI_OPTS $MAVEN_CLI_OPTS
only:
- main
release-gitlab:
stage: publish
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment