Could not fetch quality gate status

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

I used latest version of pipeline, but faced issue i am not able to understand at where exact issue was happens. Please help me out from this

I shared the bitbucket-pipeline.yml file which i used in my javascript project


sonar-bitbucketpipeline.txt (1.5 KB)
pipelineLog-{200c9e57-d3ec-447f-bd46-e18e15a52ca0}.txt (6.6 KB)

Hey there.

The Pipeline you shared shows sonarsource/sonarcloud-quality-gate:0.1.6, but the screenshot of logs you shared shows sonarsource/sonarcloud-quality-gate:0.14. Are you sure you’re looking at the right pipeline/logs?

    - step: &build-test-sonarcloud
        name: Build, test and analyze on SonarCloud
        caches:
          - node           # See https://confluence.atlassian.com/bitbucket/caching-dependencies-895552876.html
          - sonar
        script:        # Build your project and run
          - pipe: sonarsource/sonarcloud-scan:2.0.0 
        variables:
          EXTRA_ARGS: "--exclude=src/@fuse/* -X"
    - step: &check-quality-gate-sonarcloud
        name: Check the Quality Gate on SonarCloud
        script:
          - pipe: sonarsource/sonarcloud-quality-gate:0.1.6
        variables:
          EXTRA_ARGS: "--exclude=src/@fuse/*"

In any case, I think what will be truly interesting is the log output from sonarsource/sonarcloud-scan of the same pipeline where sonarsource/sonarcloud-quality-gate fails to locate an analysis, if you can share that.

Let I share it again files if I faced any confusion. and sorry for inconvenience

sonar-bitbucketpipeline.txt (1.5 KB)
pipelineLog-{200c9e57-d3ec-447f-bd46-e18e15a52ca0}.txt (6.6 KB)

Well we can be more sure that the logs match the pipeline. But still, this is what will be really insightful.

Currently i attached perfect files, I am sure about this

Can you tell at where can change in bitbucket-pipeline.yml file then the result should get different. then you can understand what and where actual issue is happen.

You’ve specified this pipe in your pipeline

This pipe should (and does) produce logs. Those are the logs you need to share.

This step work perfectly i share log file with you

pipelineLog-{200c9e57-d3ec-447f-bd46-e18e15a52ca0} (3).txt (28.2 KB)

Now we’re getting somewhere!

Can you post the response of this API call indicated at the end of the analysis?

https://sonarcloud.io/api/ce/task?id=AZFG7jM5XTaqSF8EXgGm

https://sonarcloud.io/api/ce/task?id=AZFG7jM5XTaqSF8EXgGm

“errorMessage”: “Impossible to process any new analysis. The plan for the organization ‘*******technology’ has expired. \nPlease contact the administrator of the organization to resolve this issue.”,

show above message

So our plan is expired then we not able to run the sonarsource/sonarcloud-quality-gate right ?

If your plan is expired, SonarCloud won’t be able to process your analysis, which is a necessary step to compute a Quality Gate.

Thank you for the update and your continued support. Your assistance has been incredibly helpful to me. Thanks again!

1 Like