Azure Devops Pipeline,在 Pipeline Run 的摘要页面上显示 Sonar 报告链接

问题描述 投票:0回答:1

我有一个 Azure Devos Pipeline,其中一个阶段正在运行声纳报告。运行后,管道摘要页面如下所示: enter image description here

我想在第一页的某个位置包含声纳报告链接(在 Jenkins 中,我可以在左侧菜单上找到该链接,每次作业运行后都可以轻松访问) 为了找到链接,我现在要做的就是进入特定阶段,找到正在运行报告的作业,转到日志并找到那里的链接:

enter image description here

有没有办法在摘要选项卡上的某处添加链接,或者添加带有 Azure Pipeline 链接的其他选项卡?

azure azure-devops azure-pipelines sonarqube sonarqube-scan
1个回答
0
投票

您可以使用 SonarQubePublish@6 (SonarQube) 或 SonarCloudPublish@2 (SonarCloud) 任务来发布质量门结果。

您应该在

Build Summary > Extensions
选项卡中找到分析报告的链接:

SonarCloud Analysis Report

请参阅使用 SonarCloud 提高代码的持续质量了解更多详细信息。

© www.soinside.com 2019 - 2024. All rights reserved.