nikhilbs2
(Nikhilbs2)
October 6, 2021, 12:49pm
1
Azure Devops yaml file using in multiple projects and i need to hard code the Project name while running the pipeline.
- task: SonarCloudPrepare@1
inputs:
SonarCloud: 'SonarCloud'
organization: 'unipe'
scannerMode: 'MSBuild'
projectKey: 'Project-01'
projectName: 'Project-01'
Hi @nikhilbs2 welcome to the community.
What are you trying to achieve at the end ?
Thanks.
Mickaël
nikhilbs2
(Nikhilbs2)
October 8, 2021, 8:16am
3
Hi @mickaelcaro Thank you. I need to make Project key and Project name as variables. We have multiple projects in azure so we shouldn’t hardcode.
By adding variables its failing as `below snapshots.
And if you hardcode one project for instance, does the analysis succeed ?