Cumulate SQ reports from different jobs in GitLab in under one SQ project

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SQ - 8.8, SonarScanner for MSBuild 5.2.1,
  • what are you trying to achieve
    For one of our customer we execute SQ scan from GitLab pipeline. This is .net Framework application running on Windows 2019. This application has 4 components which are build in 4 different jobs.
    I would like to be able to run builds in separate jobs (different environments) and afterwards collect reports and upload them until one SQ project.
  • what have you tried so far to achieve this
    As workaround I build twice these components which almost doubles time for the pipeline to run.

Hey there.

If the builds happen in absolutely separate environments, it won’t be possible to stitch them together in a single project (if they were all running in the same environment, you could have all 4 builds sandwiched by the Begin/End Scanner steps and have one project).

If you are running the Developer Edition of SonarQube or above, you might find using an Application is useful to get an aggregated view.