我正在使用AzureDevops发布管道来调度SSIS作业。作业有多个步骤,如果作业由于任何原因失败,释放流水线仍然会执行并给出成功消息。如何捕获作业失败错误并停止发布流水线给出失败消息。Azuredevops和powershell脚本的新手。
发布于 2020-09-25 10:52:16
在Azuredevops发布管道中使用powershell脚本执行
作业
要解决此问题,您可以尝试检查您的powershell任务是否选中了Continue on error复选框:

如果你正在使用YAML,试着在你的powershell任务中删除continueOnError: true。
- task: string # reference to a task and version, e.g. "VSBuild@1"
condition: expression # see below
continueOnError: boolean # 'true' if future steps should run even if this step fails; defaults to 'false'如果这不能解决您的问题,请分享powershell任务的配置和构建日志。
https://stackoverflow.com/questions/64038605
复制相似问题