Quality Gate failed

  • Bitbucket Cloud
  • PHP(Laravel)
    I currently run a pipeline and I get this error:

:heavy_multiplication_x: Quality Gate failed: Could not fetch quality gate status: b’{“errors”:[{“msg”:“Analysis with id \u0027None\u0027 is not found”}]}’

Kindly assist on resolving this error message.

Hey there.

How is your bitbucket-pipeline.yaml file configured? Feel free to share it here.

this is the content of the bitbucket-pipeline.yml

image: ************************** # Choose an image matching your project needs

clone:
  depth: full              # SonarCloud scanner needs the full history to assign issues properly

definitions:
  caches:
    sonar: ~/.sonar/cache  # Caching SonarCloud artifacts will speed up your build
  steps:
    - step: &build-test-sonarcloud
        name: Build, test and analyze on SonarCloud
        caches:
          - **************************           # See https://confluence.atlassian.com/bitbucket/caching-dependencies-895552876.html
          - sonar
        script:
          - **************************           # Build your project and run
          - pipe: sonarsource/sonarcloud-scan:1.4.0
    - step: &check-quality-gate-sonarcloud
        name: Check the Quality Gate on SonarCloud
        script:
          - pipe: sonarsource/sonarcloud-quality-gate:0.1.6

pipelines:                 # More info here: https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html
  branches:
    master:
      - step: *build-test-sonarcloud
      - step: *check-quality-gate-sonarcloud
  pull-requests:
    '**':
      - step: *build-test-sonarcloud
      - step: *check-quality-gate-sonarcloud

those this error has anything to do with LOC?
I just discovered LOC in sonarcloud is for an entire organization and not a project

Please i need your help on this.
Its affecting production at work and I’m a commercial customer.