Skip to content
Snippets Groups Projects
Commit 9f9cfda2 authored by Lukas Malte Monnerjahn's avatar Lukas Malte Monnerjahn
Browse files

OZG-8085 Maven Deploy CI Component

parent dc9a9b2a
Branches
No related tags found
No related merge requests found
Pipeline #2618 failed
......@@ -40,38 +40,26 @@ stages:
- test
- publish
# Maven Build, Test and Verify
include:
# Maven Build, Test and Verify
- component: $CI_SERVER_FQDN/ozg-cloud/ci-components/maven_build@main
inputs:
maven_cli_opts: $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:
# Maven Deploy for MR, Snapshot and Release to GitLab
- component: $CI_SERVER_FQDN/ozg-cloud/devops/ci-components/maven_deploy@main
inputs:
job_prefix: gitlab
stage: publish
script:
- mvn versions:set -DnewVersion=${CI_COMMIT_TAG} $MAVEN_CLI_OPTS
- mvn deploy -Pgitlab-deploy $MAVEN_DEPLOY_CLI_OPTS $MAVEN_CLI_OPTS
rules:
- if: $CI_COMMIT_TAG
release-nexus:
maven_cli_options: >-
-s .m2/ci_settings.xml --batch-mode
-Dmaven.plugin.validation=brief
maven_profile: "-Pgitlab-deploy"
# Maven Deploy for MR, Snapshot and Release to Nexus
- component: $CI_SERVER_FQDN/ozg-cloud/devops/ci-components/maven_deploy@main
inputs:
job_prefix: nexus
stage: publish
script:
- mvn versions:set -DnewVersion=${CI_COMMIT_TAG} $MAVEN_CLI_OPTS
- mvn deploy -Pnexus-deploy $MAVEN_DEPLOY_CLI_OPTS $MAVEN_CLI_OPTS
rules:
- if: $CI_COMMIT_TAG
maven_cli_options: >-
-s .m2/ci_settings.xml --batch-mode
-Dmaven.plugin.validation=brief
maven_profile: "-Pnexus-deploy"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment