which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) - sonar-maven-plugin:3.6.0.1398; SonarQube version: 6.7.0
what are you trying to achieve - For some reason, the quality gate stuck on PENDING status in Jenkins. I’m trying to understand why this is happening, and what could be done to avoid moving the quality gate check to success.
what have you tried so far to achieve this
I tried with following items:
1.Webhook was configured properly in sonarqube
2.waitForQualityGate configured in Jenkins pipeline as mentioned below
Hello, we are experiencing the same issue started about 1 week ago. Probably about an update on sonarqube or jenkins, I’m not sure.
Jenkins log: Checking status of SonarQube task ‘AXB7kyxpWH4JWL_qY_lr’ on server ‘sonarqube’ SonarQube task ‘AXB7kyxpWH4JWL_qY_lr’ status is ‘PENDING’
I’ll start by giving you the same advice I gave the OP:
Also, you say your pipelines are timing out, and I see that you’ve set your timeout at 2min. That seems a little optimistic to me. You might want to bump it up to 5min.
No, probably not. Do you know / can you tell if the analysis reports in question were processed very quickly? If so, you may be falling victim to a race condition that we’ve discovered internally very recently. (Still under investigation, so no tickets I can point you to yet.)
Would you mind sharing what the problem was? (and if it is configurable in sonarqube - how you overcame it)? That might help our future selves, when we - in the future - search for solutions.
Getting the description of the solution is wayy better than reading that something got solved
Hi, @ganncamp Do you find any issues to jenkins plugin that sends the QG status check? We are facing this issues of the Pending status.
Under CE task we can see task shows that it only took a little over five seconds to complete, well within the 10 minute timeout that we increase from 3 minutes.
stage("SonarQube Quality Gate check") {
//Force to fail step after specific time
timeout(time: 10, unit: 'MINUTES')
It is necessary to define a webhook in the sonarqube instance (if required what address should be, is it pointing to Jenkins server? or to sonrqube itself)
I am having the same issue. I created a webhook in SonarQube. After I run my pipeline, the webhook shows not delivered. how to fix this issue? Analyse got passes. but quality gate gets falling.