在 Azure DevOps 生成结果上发布 SonarQube 的质量门结果,在实际分析后使用。
注释
SonarQube 任务是 Azure DevOps 的 SonarQube 扩展的一部分,该扩展预安装在 Azure DevOps Services 中。 有关 SonarQube 和 SonarQube 任务的详细信息和支持,请参阅 Azure DevOps的
语法
# Publish Quality Gate Result v7
# Publish SonarQube Server's Quality Gate result on the Azure DevOps build result, to be used after the actual analysis.
- task: SonarQubePublish@7
inputs:
pollingTimeoutSec: '300' # string. Required. Timeout (s). Default: 300.
输入
pollingTimeoutSec
-
超时 (s)
string
。 必填。 默认值:300
。
此任务将轮询 SonarQube,直到分析完成,或直到达到超时。 它还添加一个生成属性,其中包含当前生成(s)分析的质量门状态。
任务控制选项
除任务输入之外,所有任务都具有控制选项。 有关详细信息,请参阅 “控制”选项和常见任务属性。
输出变量
没有。
注解
注释
SonarQube 任务是 Azure DevOps 的 SonarQube 扩展的一部分,该扩展预安装在 Azure DevOps Services 中。 有关 SonarQube 和 SonarQube 任务的详细信息和支持,请参阅 Azure DevOps的