Skip to content

Project Key addition for monorepo does not work #1281

Description

@JonathanMeer

Describe the bug
We have our frontend and backend in the same repository, with a separate SonarQube project for each. Our pull request check pipeline analyzes and publishes the results in two separate jobs.

With version 26.1.0, each project created its own Quality Gate status check:

  • sonarqube/qualitygate/project-key-fe
  • sonarqube/qualitygate/project-key-be

This allowed us to require and monitor the Quality Gate checks separately for the frontend and backend.

After upgrading to version 26.5.0, both projects now publish a status check named SonarQube/quality gate. As a result, the job that publishes last overrides the status from the other job.
Consequently, we can no longer configure separate required status checks and may miss a failing Quality Gate from the job that finishes first.

We also tried the monorepo configuration, but encountered the same behavior.

To Reproduce
Steps to reproduce the behavior:

  1. In Azure DevOps, create a pull request validation pipeline.
  2. Configure two separate jobs, each running a SonarQube analysis for a different SonarQube project.
  3. Create a pull request to trigger the pipeline.
  4. Review the status checks published on the pull request.

Expected behavior
SonarQube should publish a separate Quality Gate status check for each analyzed project, with the project key included in the check name. For example:

  • sonarqube/qualitygate/project-key-fe
  • sonarqube/qualitygate/project-key-be

This ensures that each Quality Gate result can be tracked and enforced independently.

Screenshots
The screenshot shows the old Quality Gates with the project keys and the new quality gate without it.
Image

Software Versions

  • SonarQube Version: v26.5.0.122743
  • Plugin Version: 26.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions