# SonarCloud Quality Gate Failing in Bitbucket Pipeline (Analysis with id \\’None\\’ is not found)

**URL:** <https://community.sonarsource.com/t/sonarcloud-quality-gate-failing-in-bitbucket-pipeline-analysis-with-id-none-is-not-found/49124>\
**Category:** SonarQube Cloud\
**Tags:** bitbucket, sonarqube-cloud\
**Created:** [September 2, 2021, 1:51am UTC](https://community.sonarsource.com/t/sonarcloud-quality-gate-failing-in-bitbucket-pipeline-analysis-with-id-none-is-not-found/49124 "2021-09-02T01:51:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ckorvi](https://avatars.discourse-cdn.com/v4/letter/c/57b2e6/32.png) [@ckorvi](https://community.sonarsource.com/u/ckorvi)\
**Post date:** [September 2, 2021, 1:51am UTC](https://community.sonarsource.com/t/sonarcloud-quality-gate-failing-in-bitbucket-pipeline-analysis-with-id-none-is-not-found/49124/1 "2021-09-02T01:51:58Z")

</div>

We are seeing below error in quality gates step when bitbucket pipeline was run .

```
Digest: sha256:67445e0f5cf6e73d6c983883d44dbcd3acc076a2a029cee98b196580e7f7c02c
Status: Downloaded newer image for sonarsource/sonarcloud-quality-gate:0.1.5
Quality Gate failed: Could not fetch quality gate status: b'{"errors":[{"msg":"Analysis with id \\u0027None\\u0027 is not found"}]}

```

**Our pipeline script is as below:**

```auto
image: maven:3.3.9
options:
  docker: true
  size: 2x
clone:
  depth: full
pipelines:
  branches:
    '{develop_devops}':
      - step:
          name: SonarQube analysis
          script:
          - pipe: sonarsource/sonarcloud-scan:1.3.0
      - step: &check-quality-gate-sonarcloud
          name: Check the Quality Gate on SonarCloud
          script:
          - pipe: sonarsource/sonarcloud-quality-gate:0.1.5
  pull-requests:
    '**':
      - step:
          name: SonarQube analysis
          script:
          - pipe: sonarsource/sonarcloud-scan:1.2.1
definitions:
  services:
    docker:
      memory: 4096
  caches:
    sonar: ~/.sonar/cache

```

Please advise. Thank you in advance !

---

<div class="post-metadata">

**Author:** ![Gregoire\_Aubert](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/gregoire_aubert/32/29_2.png) [@Gregoire\_Aubert](https://community.sonarsource.com/u/Gregoire_Aubert)\
**Post date:** [September 17, 2021, 1:53pm UTC](https://community.sonarsource.com/t/sonarcloud-quality-gate-failing-in-bitbucket-pipeline-analysis-with-id-none-is-not-found/49124/3 "2021-09-17T13:53:33Z")

</div>

Hello,

Sorry for the late answer. Do you still have the issue ?

It seems like you have a java project using maven, seeing the image you use for your pipeline. You should know that the sonarcloud-scan pipe will be able to analyze java files. Instead you should add the `org.sonarsource.scanner.maven:sonar-maven-plugin:sonar` option to you maven command (like explained in the tutorial on SonarCloud when you import a project).  
So your script for the analysis step should look like this:

```auto
script:
 - mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar

```
