SonarQube Build Breaker
SonarQube Build Breaker designed to fail SonarQube analysis during CI pipeline build if quality grates not passed
SonarQube Build Breaker
SonarQube Build Breaker designed to fail SonarQube analysis during CI pipeline build if quality grates not passed
Quick start
Easy as 1-2-3
TODO...
version: '2.1'
networks:
dev:
driver: bridge
volumes:
conf: {}
data: {}
logs: {}
services:
sonar:
image: sonarqube:7.9.1-community
ports: ['80:9000']
networks: [dev]
volumes: ['conf:/opt/sonarqube/conf',
'data:/opt/sonarqube/data',
'logs:/opt/sonarqube/logs',]
healthcheck:
test: curl -f http://127.0.0.1:9000/ || exit 1
interval: 5s
retries: 25
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Get SonarQube Build Breaker
TODO...
Do analysis
TODO...
Links
- SonarQube docker image
- SonarScanner for Maven
- SonarQube maven examples
- https://mitrai.com/tech-guide/using-sonarqube-to-automate-quality-checks-for-your-maven-project/
- How to publish maven projects to JCenter
NOTE, this project has been based on daggerok/main-starter, daggerok/sonarqube-maven-poc, and daggerok/publish-maven-project-to-jcenter repositories