# Azure devops - Sonar quality gate not matching Status Check

**URL:** <https://community.sonarsource.com/t/azure-devops-sonar-quality-gate-not-matching-status-check/99533>\
**Category:** SonarQube Cloud\
**Tags:** quality-gate\
**Created:** [September 19, 2023, 12:48pm UTC](https://community.sonarsource.com/t/azure-devops-sonar-quality-gate-not-matching-status-check/99533 "2023-09-19T12:48:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmonteirocl](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mmonteirocl/32/49392_2.png) [@mmonteirocl](https://community.sonarsource.com/u/mmonteirocl)\
**Post date:** [September 19, 2023, 12:49pm UTC](https://community.sonarsource.com/t/azure-devops-sonar-quality-gate-not-matching-status-check/99533/1 "2023-09-19T12:49:00Z")

</div>

Template for a good new topic, formatted with [Markdown](https://commonmark.org/help/):

- ALM used - **Azure DevOps**

- CI system used - **Azure DevOps**

- Scanner command used when applicable (private details masked)

- Languages of the repository - **Angular / TS / HTML / SCSS**

- Only if the SonarCloud project is public, the URL **( Private )**

- Error observed - **No errors other than the quality gate does not match the status check configured in azure devops**

- Steps to reproduce - **Dont know…**

- Potential workaround - **Dont know…**

**Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!**

 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/f/0/f04c20d333c9a2ef924113eb7db2db2443fcabfc.png)

---

<div class="post-metadata">

**Author:** ![mmonteirocl](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mmonteirocl/32/49392_2.png) [@mmonteirocl](https://community.sonarsource.com/u/mmonteirocl)\
**Post date:** [September 19, 2023, 12:50pm UTC](https://community.sonarsource.com/t/azure-devops-sonar-quality-gate-not-matching-status-check/99533/2 "2023-09-19T12:50:35Z")

</div>

UPDATE - FYI This issue happens in several projects of our organization  
Also, this started happening from today without any change in our configuration

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [September 19, 2023, 1:18pm UTC](https://community.sonarsource.com/t/azure-devops-sonar-quality-gate-not-matching-status-check/99533/3 "2023-09-19T13:18:15Z")

</div>

Hi,

Welcome to the community!

To be clear, what you’re experiencing is

- on full analyses (not pull requests)
- analysis succeeds
- the Quality Gate status is not reported

Is that correct?

&nbsp;  
Thx,  
Ann

---

<div class="post-metadata">

**Author:** ![mmonteirocl](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mmonteirocl/32/49392_2.png) [@mmonteirocl](https://community.sonarsource.com/u/mmonteirocl)\
**Post date:** [September 19, 2023, 1:30pm UTC](https://community.sonarsource.com/t/azure-devops-sonar-quality-gate-not-matching-status-check/99533/4 "2023-09-19T13:30:44Z")

</div>

Hi ! Thanks for coming back to me.

No, in fact what we have is a blocking “Status check” on “sonar quality gate” in our pull requests where the gate needs to be successful

Since today, even if the sonar analysis reports successful (when opening the analysis on sonar cloud), the status check does not match the gate being successful ( as shown in the screenshot ) and all our pull requests remain blocked because of that

**UPDATE**  
As you can see here we have this status check as required to make sure the quality gate passes on PRs to this branch  
 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/3/2/32d1edc201a3d430129dfa1ac186a1aae7a2724a.png)

But then the PR does not match that quality gate  
 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/2/7/27983b1f28acc4698038ccb2a69f729576c8d24d.png)

Even if in the PR indeed it actually worked and reported the state of that gate as successful  
 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/6/1/61dbcdeaedbcd4450578efa1d3cc9b8c800ecf7c.png)

---

<div class="post-metadata">

**Author:** ![Klug](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@Klug](https://community.sonarsource.com/u/Klug)\
**Post date:** [September 19, 2023, 1:42pm UTC](https://community.sonarsource.com/t/azure-devops-sonar-quality-gate-not-matching-status-check/99533/5 "2023-09-19T13:42:45Z")

</div>

We are getting the same issue: Quality Gate keeps on Waiting status and the PR never gets its success or failure.  
We are also using Sonar Cloud and private repos. It stopped working without any config changes. We’ve already updated & validated all tokens between Azure DevOps and Sonar Cloud but the problem persists.

PR:  
 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/b/6/b687d32d5ff0012a06e7953c011e64984a7cee9a.png)

Pipeline Extensions Tab:  
 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/d/7/d76f008de356b2b614cb0e7528c6e7029d090247.png)

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [September 19, 2023, 2:02pm UTC](https://community.sonarsource.com/t/azure-devops-sonar-quality-gate-not-matching-status-check/99533/6 "2023-09-19T14:02:20Z")

</div>

Hi @mmonteirocl,

Thanks for the detail. You’re being affected by this incident:

> [@Azure DevOps + Unbound repos PR decoration incident](https://community.sonarsource.com/t/azure-devops-pr-decoration-incident/99527):
>
> Hi all, We are actively investigating an incident with PR decoration in Azure DevOps. We became aware of this incident in the wake of a problem yesterday with reporting Quality Gate status across all DevOps platforms. We don’t have an ETA for a fix at this time. Further updates will be posted in this thread. The current incident is limited in scope to Azure DevOps. If you’re experiencing problems with other DevOps platforms, please create a new thread with all your details. &nbsp; Ann & the Son…

&nbsp;  
HTH,  
Ann

---

<div class="post-metadata">

**Author:** ![mmonteirocl](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mmonteirocl/32/49392_2.png) [@mmonteirocl](https://community.sonarsource.com/u/mmonteirocl)\
**Post date:** [September 19, 2023, 2:08pm UTC](https://community.sonarsource.com/t/azure-devops-sonar-quality-gate-not-matching-status-check/99533/7 "2023-09-19T14:08:55Z")

</div>

Thanks for the clarity about it ! I was not aware of that announcement you posted !  
Kind regards 🙂
