Is there a way to do a scan through azure devops so sonarqube scans to the proper portfolio.
ex… Our parent portfolio is Payments and within that is a project called Debit and the application being scanned is Credit.
Is there a way to make the scan go to the parent>project>appname when running CI/CD pipeline through azure devops?
Welcome to the community!
I guess this is in a C# context? If so, then your best bet is probably to set an inclusion for
Payments/Debit/Credit/**/*, making sure to start your inclusion path from where analysis kicks off.
Hi Ann thanks for your reply maybe i didnt explain it to clear. Would this cover putting the scan results in this portfolio… So i am trying to get the project scan results to show up in for this example
Okay! I didn’t understand what you meant by “scans to the proper portfolio”.
The automatic options are to include projects in that
Credit portfolio by name/key regex, or by project tags. So unless all the projects under Debit have a common substring in their names or keys, I don’t think this is going to be automatable natively within SonarQube.
Your best bet is to script this using the Web APIs.
The best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls the UI made to accomplish the action.
You may also find this guide helpful.