Template for a good new topic, formatted with Markdown:
- ALM used - Azure DevOps
- CI system used - Azure DevOps
- Scanner command used when applicable (private details masked)
- Languages of the repository - English
- Only if the SonarCloud project is public, the URL
- And if you need help with pull request decoration, then the URL to the PR too
- Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
“”" ##[error]11:05:12.787 Failed to request and parse ‘https://sonarcloud.io/api/qualityprofiles/search?project=projectname&organization=devopsorgname’: Response status code does not indicate success: 403 ().
##[error]Unhandled Exception:
##[error]System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 ().
“”"
-
Steps to reproduce
- task: SonarCloudPrepare@1
displayName: Prepare analysis on SonarCloud
enabled: true
inputs:
SonarCloud: ‘Sonarcloud endpoint name’
organization: devopsorgname
scannerMode: MSBuild
projectKey: projectkey
projectName: projectname
- task: SonarCloudPrepare@1
-
Potential workaround
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!