Home > Back-end >  Pull Request Decoration is not working in sonarqube with azure devops
Pull Request Decoration is not working in sonarqube with azure devops

Time:02-25

I have configured pull request decoration (ALM configuration) in sonarqube without any errors.

enter image description here

Still I have below warning in sonarqube.

Pull Request decoration failed: Unable to contact Azure DevOps server : TF401019: The Git repository with name or identifier SUPPORT-CI does not exist or you do not have permissions for the operation you are attempting.

And empty status check in Azure devops repo:

enter image description here

Any input would be helpful, Thank you.

CodePudding user response:

Please check the below workarounds for resolving this issue:

  • check your project bound to the correct repository (clicking on the Azure DevOps icon should take you to the repository you are raising pull requests on).

  • Do you see Pull Requests being analyzed in the SonarCloud UI (under the Pull Requests section of your project)?

Screenshot 2022-02-03 at 15.35.17

  • Finally, have you configured a valid token at either the project-level Administration > General Settings > Pull Requests) (OR) at the organiztion-level (Administration > Organization settings > Azure DevOps connectivity management).

Also the reason for this may be the Personal Access Token used had expired, or at least creating a new one will help fix this.

So try to change the Personal access token and queue the build.

Also refer this Github issue for similar kind of error.

CodePudding user response:

I followed this https://community.sonarsource.com/t/sonarqube-not-able-to-fetch-devops-repositories/38096/3 and it's working now.

  • Related