Sonarqube for last 6 months is failing with below issue,
##[error]ERROR: Error during SonarScanner execution
ERROR: You’re not authorized to run analysis. Please contact the project administrator.
ERROR:
ERROR: Error during SonarScanner execution
ERROR: You’re not authorized to run analysis. Please contact the project administrator.
ERROR:
##[error]The SonarScanner did not complete successfully
Last time it worked was under the version 9.4. Soon after the upgrade we are facing this issue.
We already opened a support ticket with SonarQube technician, we followed everythig they said but no luck yet.
What we did:
- Created a Global analysis token and paste that token inside the Azure service connection.
- Also did the Devops Platform Integrations with Azure Devops by generating the Personal Access Token
- Turned on the Executed anlaysis for the user who created the Global Analysis token.
- Also tuned on the execute analysis for the individual project as well.
When I see the logs from Azure devops,
I read in a forum, it states that sonar.login is deprecated but still I see in the log that its getting passed.
I manually passed the sonar.token in the extra properties as well
Pipeline:
task: SonarQubePrepare@5
displayName: ‘Prepare analysis on SonarQube’
inputs:
SonarQube: SonarQube-Test
scannerMode: MSBuild
projectKey: EnterpriseApps-XXXX.UI
projectVersion: $(Build.BuildId)
extraProperties:
sonar.token=sqa_xxxxxxxxxxxxxxx6785f3
Is Someone facing the similar issue, we been stuck with this for long time. Can someone please help?