Adding code quality reports for merges and master.
image: maven:latest
+include:
+ - template: Code-Quality.gitlab-ci.yml
+
variables:
MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode"
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
+code_quality:
+ rules:
+ - if: '$CODE_QUALITY_DISABLED'
+ when: never
+ - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
+ - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
+ - if: '$CI_COMMIT_TAG'
+
cache:
paths:
- ~/.m2/repository/
