Hello,
I am getting an error trying to analyze an Angular app in Azure DevOps. I set up the pipeline with all the correct keys and have the sonar-project.properties file in my root. Any ideas?
“You must define the following mandatory properties for ‘Unknown’: sonar.projectKey”
Thanks for getting back to me. This pipeline has been fine for a month or two, and all of a sudden it started failing. Here is the yaml for the prep tasks:
Prep:
steps:
- task: SonarSource.sonarcloud.14d9cde6-c1da-4d55-aa01-2965cd301255.SonarCloudPrepare@1
displayName: ‘Prepare analysis on SonarCloud’
inputs:
SonarCloud: SonarCloud
organization: {masked}
scannerMode: CLI
Analysis:
steps:
- task: SonarSource.sonarcloud.ce096e50-6155-4de8-8800-4221aaeed4a1.SonarCloudAnalyze@1
displayName: ‘Run Code Analysis’
Publish:
steps:
- task: SonarSource.sonarcloud.38b27399-a642-40af-bb7d-9971f69712e8.SonarCloudPublish@1
displayName: ‘Publish Quality Gate Result’