![](/img/trans.png)
[英]Azure DevOps: How to retrieve a build artifact from build Azure Pipeline from a PowerShell Script in Release Pipeline?
[英]Powershell to fetch the Component Governance result from azure devops build pipeline
如果您收到組件治理警報 om 缺少該特定構建的許可證信息,我們要求 azure devops 構建管道失敗。 是否有任何 powersehll 命令從管道中提取組件治理構建結果並使構建失敗
當您收到缺少許可證信息的組件治理警報時,您可以使用以下代碼編寫錯誤:
# Writes an error to build summary and to log in red text
Write-Host "##vso[task.LogIssue type=error;]This is the error"
如果您希望此錯誤使構建失敗,請添加以下行:
exit 1
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.