Skip to content

stewiezc/sonarqube-check-quality-gate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

sonarqube-check-quality-gate

Check if quality gates have pass/failed

variables

this is meant to be run in a pipeline after sonar-scanner outputs the report-task.txt file. It is configured with environment variables

SONAR_TOKEN

CI_PROJECT_DIR - starting directory. This works with gitlab.

the expectation is that sonar-scanner runs in your application code directory and writes out $CI_PROJECT_DIR/.scannerwork/report-task.txt

print out some debug

pass a -d

check-quality-gate -d

example run

./check-quality-gate 
2019/04/10 22:40:41 Quality gate FAILED with ERROR dashboard available here: https://sonarcloud.io/dashboard?id=sample-project

About

Check if quality gates have pass/failed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages