Questions tagged [quality-gate]

30 questions
6
votes
8 answers

Sonarqube quality gate not sending webhook to jenkins

I configure Jenkins to work with sonarqube scanner. The scan are working fine. The jenkins pipeline is working and I don't have any isssue in the jenkins log. SonarQube Scanner 3.0.3.778 Jenkins: 2.70 SonarQube Scanner for Jenkins plugin: 2.6.1 I…
Marc
  • 67
  • 1
  • 1
  • 3
5
votes
1 answer

Bitbucket Pipelines Read Quality Gate Results

We are trying to integrate Bitbucket Pipelines (Cloud) with SonarQube (6.4). In particular, we want that the Pipelines build fails if the SonarQube analysis detects some quality gate violations in our Java code. Currently, we are using Jenkins…
3
votes
1 answer

No such DSL method 'waitForQualityGate' found among steps

I have problem with method waitForQualityGate(). I got an error "No such DSL method 'waitForQualityGate' found among steps". Another strange thing is that I must use parameter -DX for sonarscanner. I don't know what is wrong. Thanks for…
3
votes
1 answer

Make quality gate pass manually

I'm using SQ 6.2 with quality profile "Sonar Way" and quality gate also "SonarWay". After some refactorings the QG fails with new issues and coverage on new code (which is not really new). I'd like the project to pass the QG (because no new code…
Frank
  • 741
  • 1
  • 10
  • 24
2
votes
0 answers

SonarQube error in Azure devops when executing publish quality gate task

When I run the sonar analysis on my code there is no problem, even the results are published in the Sonar tool but when executing the publish quality gate task the pipeline fails and shows the following error: ##[error][SQ] API GET '/api/ce/task'…
Alejandro Herrera
  • 411
  • 1
  • 5
  • 22
2
votes
1 answer

How to select sonarqube quality gate from jenkins pipeline?

I had configured sonarqube server in jenkins. In sonarqube I had a different quality gates, each quality gates has different conditions. I had a multiple jenkins pipeline job. How to select the sonarqube quality gate from jenkins pipeline. For a…
Prakash
  • 591
  • 3
  • 9
  • 28
2
votes
1 answer

Is it possible to create a sonarqube quality gate condition to catch reduction in the code coverage in latest sonarqube(Version 6.7)?

I need to create a sonarqube quality gate condition that fails a build if the code coverage drops from the last version. The leak period is now set as the 'previous_version'. I know that there was a delta analysis feature in the older versions of…
Sunil Kpmbl
  • 751
  • 8
  • 10
1
vote
1 answer

Github Actions add quality gate for test results

Net core and github actions. I have pipeline running in Github actions and I have integrated Sonarqube. My requirement is if the code coverage is less than 70 or any specified number then we should not allow to continue the build process. Build…
1
vote
1 answer

SonarCloud Coverage is always 0% in spring with gradle project on bitbucket pipelines

I'm currently trying to configure a Sonarcloud in my SpringBoot project with gradle and bitbucket-pipelines. But for every PR and every branch it always shows 0% line coverage. I've added the plugin configuration to my build.gradle file: id…
1
vote
0 answers

Bootstrap sonarqube with Qulity Gates and Quality Profiles

I am trying to create sonarqube with docker-compose, one of the requirements to include quality profiles and quality gates to be available, once bring up the server by using docker-compse up command readily to the developers. Is there a possibility…
Paramesh Korrakuti
  • 1,997
  • 4
  • 27
  • 39
1
vote
1 answer

org.sonarqube.ws.client.HttpException: Error 401

I am trying to run sonar-scanner and access quality gate results and am kind of stuck after trying various options suggested on forums. This is my first time trying to post, so please let me know if I am missing any details. I do see the json…
Anand
  • 21
  • 3
1
vote
1 answer

Pull Request analysis and Quality Gate on SonarQube

I have installed SonarQube 7.6 Developer Edition, and starting using it on my development environment pipeline. My coding approch is Trunk Based Development. We have only one mainline (master or trunk or develop as you prefer to define, but only…
Luigi Saggese
  • 5,299
  • 3
  • 43
  • 94
1
vote
1 answer

quality gate on pitest mutations is not triggerd when project does not run pitest

we are using pitest plugin in sonarqube and set up a quality gate on mutation coverage, since it is much more valuable than other coverage measurements. Only, when a project is pushed that does not use pitest, the quality gate is not triggerd at…
rdietrich
  • 11
  • 2
1
vote
3 answers

How to poll the quality gate execution status?

I would like to poll the quality gate execution status of my SonarQube 6.3 instance using a REST api call. I went through a few api calls, which did not give me the expected results. I tried to use these…
Simbu
  • 766
  • 1
  • 12
  • 37
0
votes
0 answers

Showing error while SonarQube Quality Gate via GitHub Actions,

I just integrated the Sonarqube with Github .. Used Github actions for integration with the sonarqube in which sonarqube quality gate template is used as the pipeline script and the over each pull request the sonarqube will check the code and will…
1
2