Quality gate is not being run on master (main) branch, but is on others

Template for a good new topic, formatted with Markdown:

  • ALM used - Bitbucket Cloud
  • CI system used - Circle CI
  • Scanner command used when applicable (private details masked)
    SONAR_TOKEN=…token… sonar-scanner -X
  • Languages of the repository - Typescript
  • Only if the SonarCloud project is public, the URL - private
    • And if you need help with pull request decoration, then the URL to the PR too
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
08:45:31.433 DEBUG: POST 200 https://sonarcloud.io/api/ce/submit?organization=elementalmachines&projectKey=elementalmachines_em-nodejs-service-template | time=1129ms
08:45:31.437 INFO: Analysis report uploaded in 1133ms
08:45:31.438 DEBUG: Report metadata written to /Users/denis/em/em-nodejs-service-template/.scannerwork/report-task.txt
08:45:31.440 INFO: ------------- Check Quality Gate status
08:45:31.440 INFO: Waiting for the analysis report to be processed (max 300s)
08:45:32.071 DEBUG: GET 200 https://sonarcloud.io/api/ce/task?id=AYPwRwurFqizjOwPdBZi | time=631ms
08:45:37.223 DEBUG: GET 200 https://sonarcloud.io/api/ce/task?id=AYPwRwurFqizjOwPdBZi | time=142ms
08:45:37.342 DEBUG: GET 200 https://sonarcloud.io/api/qualitygates/project_status?analysisId=AYPwRw5K9FHc4t2SKhQK | time=118ms
08:45:37.352 DEBUG: eslint-bridge server will shutdown
08:45:42.353 DEBUG: eslint-bridge server closed
08:45:44.848 INFO: ------------------------------------------------------------------------
08:45:44.848 INFO: EXECUTION FAILURE
08:45:44.848 INFO: ------------------------------------------------------------------------
08:45:44.848 INFO: Total time: 1:03.779s
08:45:44.931 INFO: Final Memory: 48M/170M
08:45:44.931 INFO: ------------------------------------------------------------------------
08:45:44.931 ERROR: Error during SonarScanner execution
QUALITY GATE STATUS: FAILED - View details on https://sonarcloud.io/dashboard?id=elementalmachines_em-nodejs-service-template

The quality gate does not run on the master branch:

It does run on other branches:

Hi,

Your branch homepage screenshot (thanks for that!) shows the gate hasn’t been computed, which is I guess why retrieving the status fails.

What’s your New Code setting for the main branch? What do you see when you click the “Set New Code Definition” button?

 
Ann

hi,
I got the same problem as this. Because I’m not admin of the project. I cannot get view after click 'Set New Code Define" button.
But I just want to check, are there some extra settings need to set for the main branch? Can you show me an example?
Thanks very much.

Hi @rainbow,

You’ll need to talk to your project admin.

 
Ann