简体   繁体   English

拉取请求装饰在 sonarqube 和 azure devops 中不起作用

[英]Pull Request Decoration is not working in sonarqube with azure devops

I have configured pull request decoration (ALM configuration) in sonarqube without any errors.我已经在 sonarqube 中配置了 pull request 修饰(ALM 配置),没有任何错误。

在此处输入图像描述

Still I have below warning in sonarqube.我仍然在 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.拉取请求装饰失败:无法联系 Azure DevOps 服务器:TF401019:名称或标识符为 SUPPORT-CI 的 Git 存储库不存在,或者您没有权限执行您正在尝试的操作。

And empty status check in Azure devops repo:并在 Azure devops repo 中检查空状态:

在此处输入图像描述

Any input would be helpful, Thank you.任何输入都会有所帮助,谢谢。

It's working now, Cross check the followings to investigate the issue:它现在正在工作,交叉检查以下内容以调查问题:

  1. Generate Azure token (PAT) with Code > Read & Write permission.使用代码 > 读写权限生成 Azure 令牌 (PAT)。
  2. Make sure the same user (used for PAT token) have access to the Azure devops project (under security).确保同一用户(用于 PAT 令牌)有权访问 Azure devops 项目(在安全下)。
  3. Go to SonarQube and configure Azure DevOps Integration: Administrator --> ALM Integration --> Azure DevOps--> Create Configuration. Go 到 SonarQube 并配置 Azure DevOps 集成:管理员 --> ALM 集成 --> Azure DevOps--> 创建配置。
  4. Go to Add Project on SonarQube and configure the repository. Go 在 SonarQube 上添加项目并配置存储库。 Add Project --> Azure DevOps to configure repository.添加项目 --> Azure DevOps 以配置存储库。

Good luck!祝你好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM