Asterix
Asterix

Reputation: 433

Azure DevOps Branch policy cause Sonar Cloud Error

We have recently set the below Branch policy to not allow any branch build with errors, to be merged to main:

enter image description here

We have configured Sonar Cloud as well in the pipeline. When the developer builds their branch its getting successful. But when they merge their PR, its throwing Sonar Cloud authorization. The only change that we have done recently is the updating the branch policy. I am confused why this change is throwing such error which is nothing related to branch policy

Edit:

Just before checking the build error , I am getting this page enter image description here

Upvotes: 0

Views: 146

Answers (1)

Leo Liu
Leo Liu

Reputation: 76740

Azure DevOps Branch policy cause Sonar Cloud Error

According to the description:

"When the developer builds their branch its getting successful. But when they merge their PR, its throwing Sonar Cloud authorization. The only change that we have done recently is the updating the branch policy."

This error message should not related to the branch policy setting, we could remove the branch policy setting to verify it.

Thanks for the Asterix sharing:

The issue is not related to branch policy. Issue was with Sonar Service Account password expiry.

Upvotes: 1

Related Questions