CWSites
(Matt)
August 25, 2021, 7:22pm
1
SonarQube Version - * Version 9.0.1 (build 46107)
Our scan is setup via github action, I followed all the directions and setup the proper github secrets
See my github action configuration below
sonarqube:
name: SonarQube Scan
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST_URL }}
CWSites
(Matt)
August 26, 2021, 2:53pm
2
Had to chase this down quite a bit, the problem was the buildbreaker
plugin. This github issue explains how. The configuration needs to be set as sonar.buildbreaker.skip=true
opened 04:14PM - 07 Dec 17 UTC
closed 12:19AM - 07 Jan 18 UTC
help wanted
I installed the sonar build breaker on SonarQube Version 6.7 (build 33306). Tha… t is, I placed the sonar-build-breaker-plugin-2.2.jar plugin jar file in the /opt/sonarqube/extensions/plugins, and restarted the server. After doing that I noticed the buildbreaker running during the "verify" phase of my Maven build (see printouts below).
Question: Is there a way to disable the buildbreaker from running by default; that is, for every maven build that involves calling the "sonar:sonar" goal during verify? That is, is there a property that I can configure on the server side to disable this plugin from running as default? And a property I can set on my maven build to enable the buildbreaker plugin from my Maven build?
[INFO] Executing post-job org.sonar.plugins.buildbreaker.QualityGateBreaker
[INFO] Waiting for report processing to complete...
[INFO] Quality gate status: ERROR
[ERROR] Condition Coverage: 6.1 < 80
[ERROR] [BUILD BREAKER] Project did not meet 1 conditions
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
Thanks,
Rubens Gomes
www.rubens-gomes.com
system
(system)
Closed
September 2, 2021, 2:54pm
3
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.