Azure DevOps Single Project Multiple Pipelines

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube Community Edition
  • what are you trying to achieve
    I have multiple pipelines in my Azure DevOps project. I am trying to get the result of the scan using the SonarQube API (OK,ERROR, etc). However, this will only return the status of the last run pipeline because the AzDo is integrated with SonarQube so all Pipeline Jobs carry the same Project_Key. Is there a way to get the scan results for all the pipelines?
  • what have you tried so far to achieve this
    Cannot find a way to achieve this.

Hey there.

Are you multiple pipelines all scanning the same code, or different code? If different code – you’ll need to use a different Project Key for each pipeline.

I couldn’t find a way to get a different project key…I mean there is only 1 project key generated for the Azure Project. So, all Pipelines get the same key…that is the issue in fact.

You can create new projects in SonarQube, assuming you have the Create Projects permission.