Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Nurlan199206/5c1e2fdfbb8bff13536e3353ca7cc35c to your computer and use it in GitHub Desktop.
Save Nurlan199206/5c1e2fdfbb8bff13536e3353ca7cc35c to your computer and use it in GitHub Desktop.
sonarqube quality gate comment on merge requests
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