在Azuredevops发布管道中使用powershell脚本执行SSIS作业

在Azuredevops发布管道中使用powershell脚本执行SSIS作业,powershell,ssis,azure-devops,ssis-2012,Powershell,Ssis,Azure Devops,Ssis 2012,我正在使用AzureDevops发布管道来安排SSIS作业。 作业有多个步骤,如果作业因任何原因失败,发布管道仍将执行并给出成功消息。如何捕获作业失败错误并停止发出失败消息的发布管道。Azuredevops和powershell脚本的新增功能 在Azuredevops发布管道中使用powershell脚本执行SSIS作业 要解决此问题,您可以尝试检查是否选中了复选框 错误时继续执行powershell任务: 如果您正在使用YAML,请尝试删除powershell任务中的continueOnEr

我正在使用AzureDevops发布管道来安排SSIS作业。 作业有多个步骤,如果作业因任何原因失败,发布管道仍将执行并给出成功消息。如何捕获作业失败错误并停止发出失败消息的发布管道。Azuredevops和powershell脚本的新增功能

在Azuredevops发布管道中使用powershell脚本执行SSIS作业

要解决此问题,您可以尝试检查是否选中了复选框 错误时继续执行powershell任务:

如果您正在使用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任务的配置和生成日志

- 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'
在Azuredevops发布管道中使用powershell脚本执行SSIS作业

要解决此问题,您可以尝试检查是否选中了复选框 错误时继续执行powershell任务:

如果您正在使用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任务的配置和生成日志。

您可以显示此失败任务的日志吗?@KrzysztofMadej您希望在日志中看到什么?我不知道,直到我看到他们对此问题的任何更新?你解决这个问题了吗?如果没有,,您能告诉我有关此问题的最新信息吗?@Leo Liu MSFT我使用powershell脚本捕获SQL代理作业错误,并将其用作发布管道中的任务。您能显示此失败任务的日志吗?@KrzysztofMadej您希望在日志中看到什么?我不知道,直到看到他们对此问题的任何更新?你解决这个问题了吗?如果没有,请告诉我有关此问题的最新信息好吗?@Leo Liu MSFT我使用powershell脚本捕获SQL代理作业错误,并将其用作发布管道中的任务。
- 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'