diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 57791adb729cafc2a1069a954f8ae0930e2a58f2..be2db2c1bd39d49508f082dbd7f5b092fcfe292b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,6 @@ image: maven:3.9.9-eclipse-temurin-21-alpine variables: - MAVEN_DEPLOY_CLI_OPTS: "--no-transfer-progress -DskipTests" MAVEN_CLI_OPTS: >- -s .m2/ci_settings.xml --batch-mode -Dmaven.plugin.validation=brief @@ -50,16 +49,12 @@ include: inputs: job_prefix: gitlab stage: publish - maven_cli_options: >- - -s .m2/ci_settings.xml --batch-mode - -Dmaven.plugin.validation=brief + maven_cli_options: $MAVEN_CLI_OPTS 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 - maven_cli_options: >- - -s .m2/ci_settings.xml --batch-mode - -Dmaven.plugin.validation=brief + maven_cli_options: $MAVEN_CLI_OPTS maven_profile: "-Pnexus-deploy"