sonarqube quality gate status check shows waiting in azure devops pipeline for few projects. where as this works fine for other projects.
I verified and the PAT seems okay.
Let me know what could be the reason?
using sonarqube 8.5 V
sonarqube quality gate status check shows waiting in azure devops pipeline for few projects. where as this works fine for other projects.
I verified and the PAT seems okay.
Let me know what could be the reason?
using sonarqube 8.5 V
Waiting means analysis is not completed yet due to pending background task. Although, the execution is SUCCESS i.e. sonarscanner has finished analyzing the code but the processing of analysis report is not yet being processed by SonarQube server.
The final processing is done by Compute Engine (CE). CE process the reports serially thus the projects are waiting in queue.
You can increase the number of workers of CE to process more reports at the same time.
More details:
In our case, it was the PAT token, that was expired. Steps we followed,
Login to SonarQube portal, Administration--> Configuration >> ALM Integration >> Azure Devops
you would see the warning over there, "Invalid Azure Url or Personal Access Token".
if that is the case,
then login to your Azure Devops portal>> User Settings>> Personal Access Token >> put on the name for token >> and select the required scopes >> Read & Write.
Save, copy the token.
And take this token from Azure Devops portal and update it on the Sonar Qube portal.
That's it.
This was specific to my case. Your case might be different. This is one of the cases you want to check.