image: maven:3.6-jdk-8 variables: LC_ALL: "en_US.UTF-8" LANG: "en_US.UTF-8" LANGUAGE: "en_US" LIB_NAME: "ms_specific" MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version" MAVEN_OPTS: "-Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=${CI_PROJECT_DIR}/.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true" GIT_DEPTH: "2" SECURE_LOG_LEVEL: "debug" include: - template: Dependency-Scanning.gitlab-ci.yml - template: Secret-Detection.gitlab-ci.yml stages: - assemble - test - package - release cache: paths: - ".m2/repository" assemble: stage: assemble except: - tags script: | mvn $MAVEN_CLI_OPTS generate-sources compile test artifacts: when: always reports: junit: "**/target/surefire-reports/TEST-*.xml"