Created
February 1, 2024 05:04
-
-
Save Nurlan199206/5c1e2fdfbb8bff13536e3353ca7cc35c to your computer and use it in GitHub Desktop.
sonarqube quality gate comment on merge requests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sonarqube-check: | |
stage: Code Quality Check | |
image: git.yourserver.com:5050/finservice/deployment/docker-images/gradle:7.6.3-jdk | |
tags: | |
- docker | |
variables: | |
GRADLE_OPTS: "-Xmx1024m" | |
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache | |
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task | |
cache: | |
key: "${CI_JOB_NAME}" | |
paths: | |
- .sonar/cache | |
script: gradle sonar --info --watch-fs -Dsonar.analysis.mode=publish |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment