Error running SolarCloud in Azure ADO on an Angular app

Hi,
My pipelines just started failing and I am trying to figure out how to get more debugging information. How do I perform the -x operation in an ADO pipeline? “Re-run SonarScanner using the -X switch to enable full debug logging.”

##[error]ERROR: Error during SonarScanner execution

ERROR: The Azure DevOps access token is not valid

ERROR:

ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

ERROR: Error during SonarScanner execution

ERROR: The Azure DevOps access token is not valid

ERROR:

ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

##[error]The process ‘/home/vsts/work/_tasks/SonarCloudAnalyze_ce096e50-6155-4de8-8800-4221aaeed4a1/1.29.1/sonar-scanner/bin/sonar-scanner’ failed with exit code 2

Hey there.

I can save you some time debugging – this log message is telling you that the token set either at the project-level Administration > Pull Request Decoration or organization-level Adminstraiton > Organization Settings is not valid, and needs to be updated.

I don’t have either of those options

image

And also, all of my pipelines where I use SonarCloud are failing. Was there a recent SonarCloud update?

Some more information…it says something is wrong, but I have no idea how to fix this

Hey there.

You should generate a new token in Azure DevOps and place it there. See the documentation here on the permissions required for that token and where to generate it.