diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4e3b590ec198a34b6ba481c3ea256f2e36da94d3..9206fb1cf55f88730f5e6761fbca746fa0136b3e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,7 +5,6 @@ stages: default: # Default image image: registry.orekit.org/orekit/ci-utils/maven:3.9.6-eclipse-temurin-11 - # Cache downloaded dependencies and plugins between builds. # To keep cache across branches add 'key: "$CI_JOB_REF_NAME"' cache: @@ -13,15 +12,20 @@ default: - .m2/repository variables: - # This will supress any download for dependencies and plugins or upload messages which would clutter the console log. - # `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work. + # This will suppress any download for dependencies and plugins or upload + # messages which would clutter the console log. `showDateTime` will show the + # passed time in milliseconds. You need to specify `--batch-mode` to make + # this work. MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true" - # As of Maven 3.3.0 instead of this you may define these options in `.mvn/maven.config` so the same config is used - # when running from the command line. - # `installAtEnd` and `deployAtEnd` are only effective with recent version of the corresponding plugins. + # As of Maven 3.3.0 instead of this you may define these options in + # `.mvn/maven.config` so the same config is used when running from the + # command line. + # `installAtEnd` and `deployAtEnd` are only effective with recent version of + # the corresponding plugins. MAVEN_CLI_OPTS: "-s .CI/maven-settings.xml --batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true" SONAR_PROJECT_KEY: "${CI_PROJECT_NAMESPACE}:${CI_PROJECT_NAME}" SONAR_PROJECT_NAME: "${CI_PROJECT_TITLE} (${CI_PROJECT_NAMESPACE}:${CI_PROJECT_NAME})" + # Deployment target properties TARGET_URL_PREFIX: "cochise@ganymede.orekit.org:/var/www/mvn-sites/site-rugged" verify: @@ -53,9 +57,8 @@ verify:warning: rules: - if: $SONAR_TOKEN == null -# On main branches (develop, release-*, master) -# the produced artifacts are deployed on the Nexus of the project -# (https://packages.orekit.org/) +# On main branches (develop, release-*, master) the produced artifacts are +# deployed on the Nexus of the project (https://packages.orekit.org/) deploy:artifacts: stage: deploy script: