We have azure build pipelines, some are in visual editor and few are in yaml. I am trying to add sonarcloud analysis to these pipelines. This work fine in the visual editor, I am copying same yaml from visual editor to add in existed yaml pipeline. I am getting this error.
An error occurred while loading the YAML build pipeline. The service connection name 00000000-0000-0000-0000-000000000000 is ambiguous.
What I have done so far, checked below resources and tried solutions mentioned there,
- https://github.com/Microsoft/azure-pipelines-yaml/issues/31
- VSTS anybody managed to use "secure file" in azure-pipelines.yml?
- https://github.com/Microsoft/azure-pipelines-agent/issues/1809
- create a new azure yaml pipeline
- Verify sonarcloud connection in service connections in project settings.
this is my task definition
- task: SonarSource.sonarcloud.****************.SonarCloudPrepare@1
displayName: 'Prepare analysis on SonarCloud'
inputs:
SonarCloud: *************
organization: ****
projectKey: "******"
projectName: "************"