# Quality gate decorating - Azure devops

**URL:** <https://community.sonarsource.com/t/quality-gate-decorating-azure-devops/115744>\
**Category:** SonarQube Cloud\
**Tags:** pull-request-decorat, quality-gate, pull-request\
**Created:** [May 22, 2024, 9:56am UTC](https://community.sonarsource.com/t/quality-gate-decorating-azure-devops/115744 "2024-05-22T09:56:55Z")\
**Posts on this page:** 12\
**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:** [May 22, 2024, 9:56am UTC](https://community.sonarsource.com/t/quality-gate-decorating-azure-devops/115744/1 "2024-05-22T09:56:55Z")

</div>

Pull request with 85% of quality gate is not decorating the PR with the gate passing  
Had this issue in the past, and was fixed on your end.

See the original thread where the issue happened identically as of now

> [@Azure devops - Sonar quality gate not matching Status Check](https://community.sonarsource.com/t/azure-devops-sonar-quality-gate-not-matching-status-check/99533):
>
> 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… D…

---

<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:** [May 22, 2024, 9:58am UTC](https://community.sonarsource.com/t/quality-gate-decorating-azure-devops/115744/2 "2024-05-22T09:58:51Z")

</div>

As you can see here, the quality gate is not being marked as passed  
 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/8/6/86a4f4c27743e623aafe0a674c253aa8b8c786eb.png)

But in sonar, it shows as completely successful

 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/0/0/0074d95dcedce9c2ebb00c518113e5de542add65.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:** [May 23, 2024, 11:25am UTC](https://community.sonarsource.com/t/quality-gate-decorating-azure-devops/115744/3 "2024-05-23T11:25:48Z")

</div>

It was fixed after x hours, but today we are again with that issue which is actually blocking from us developing more code ☹

I checked the status page, and there is a reported issue the 7th of may, which matches identically our issue but is marked as resolved, and no current incident is shown

---

<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:** [May 23, 2024, 1:30pm UTC](https://community.sonarsource.com/t/quality-gate-decorating-azure-devops/115744/4 "2024-05-23T13:30:25Z")

</div>

Hi,

Could you provide some details about your CI? Is it self-hosted? And if so, where?

&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:** [May 23, 2024, 2:00pm UTC](https://community.sonarsource.com/t/quality-gate-decorating-azure-devops/115744/5 "2024-05-23T14:00:20Z")

</div>

Hi !

Azure hosted agents running with the macOS-latest image  
But we are also now experiencing it with the windows-latest image now

The project is an Angular monolith project running on angular 17

---

<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:** [May 23, 2024, 2:01pm UTC](https://community.sonarsource.com/t/quality-gate-decorating-azure-devops/115744/6 "2024-05-23T14:01:39Z")

</div>

Hi,

Are you self-hosted?

And if so, from where?

&nbsp;  
Thx,  
Ann

---

<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:** [May 23, 2024, 2:17pm UTC](https://community.sonarsource.com/t/quality-gate-decorating-azure-devops/115744/8 "2024-05-23T14:17:24Z")

</div>

Hi again,

Could you also provide

- a task ID from the background task  
and/or
- your org and project ID

?

&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:** [May 23, 2024, 4:38pm UTC](https://community.sonarsource.com/t/quality-gate-decorating-azure-devops/115744/9 "2024-05-23T16:38:49Z")

</div>

> [@ganncamp](#):
>
> a task ID from the background task

Can I share the projectID / org ? Are these infos harmless ?  
Also, the task ID could you point me into how to find it ?  
In the logs of sonar, I only find a “server id”

---

<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:** [May 23, 2024, 4:59pm UTC](https://community.sonarsource.com/t/quality-gate-decorating-azure-devops/115744/10 "2024-05-23T16:59:05Z")

</div>

Hi,

In the SonarCloud UI, go to (project) Administration → Background Tasks.

In the task column, you’ll see the project name, the task type and the task ID.

And yes, sharing org and project ID should be harmless.

&nbsp;  
Thx,  
Ann

---

<div class="post-metadata">

**Author:** ![marcl](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@marcl](https://community.sonarsource.com/u/marcl)\
**Post date:** [May 27, 2024, 5:16pm UTC](https://community.sonarsource.com/t/quality-gate-decorating-azure-devops/115744/12 "2024-05-27T17:16:54Z")

</div>

I’m part of Miguel’s team, so here’s the information you asked for:

- We’re not self-hosted, we’re using Microsoft-Hosted agents
- Since Miguel posted his message, all our Pull Requests have the issue regardless of the agent OS Type (Linux, Windows, MacOS)
- Here are a someTask IDs from different projects impacted by the issue: AY-6\_P6UG5BTKlLQInxb, AY-6k-pApcH3z9Vs7\_Zf

For now I worked around the issue by making the gates “optional” instead of “mandatory” for our pull requests. Which isn’t ideal because I have to update all branch policies manually.

---

<div class="post-metadata">

**Author:** ![marcl](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@marcl](https://community.sonarsource.com/u/marcl)\
**Post date:** [June 3, 2024, 3:00pm UTC](https://community.sonarsource.com/t/quality-gate-decorating-azure-devops/115744/13 "2024-06-03T15:00:48Z")

</div>

Hello again,  
just a message to let you know that we managed to fix the issue. The problem was on our side: an expired PAT token prevented the gates from being updated properly.

---

<div class="post-metadata">

**Author:** ![Antoine](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/antoine/32/1316_2.png) [@Antoine](https://community.sonarsource.com/u/Antoine)\
**Post date:** [June 3, 2024, 3:30pm UTC](https://community.sonarsource.com/t/quality-gate-decorating-azure-devops/115744/14 "2024-06-03T15:30:05Z")

</div>

Thank you for confirming @marcl 🙏
