我正在使用VSTS来运行量角器e2e测试用例 . 我有一个运行测试的npm自定义任务,即使测试失败,vsts构建也不会失败 .
如何使vsts构建失败?
您可以尝试将 Write-Error 与退出1结合使用以使任务失败:
Write-Error
Write-Error ("Some error") exit 1
检查以下案例:
How to fail the build from a PowerShell task in TFS 2015
1 回答
您可以尝试将
Write-Error
与退出1结合使用以使任务失败:检查以下案例:
How to fail the build from a PowerShell task in TFS 2015