[英]Executing SSIS job using powershell script in Azuredevops release pipeline
I am using AzureDevops release pipeline to schedule SSIS job.我正在使用 AzureDevops 发布管道来安排 SSIS 作业。 Job has multiple steps, if job fails for any reason the release pipeline still executes and gives Success message.作业有多个步骤,如果作业因任何原因失败,发布管道仍会执行并给出成功消息。 How can I catch the job fail error and stop the release pipeline giving failure message.如何捕获作业失败错误并停止发布管道提供失败消息。 New to Azuredevops and powershell script. Azuredevops 和 powershell 脚本的新手。
Executing SSIS job using powershell script in Azuredevops release pipeline在 Azuredevops 发布管道中使用 powershell 脚本执行 SSIS 作业
To resolve this issue, you could try to check if you are selected the checkbox Continue on error for your powershell task:要解决此问题,您可以尝试检查是否选中了 powershell 任务的“出错时继续”复选框:
If you are using YAML, try to remove continueOnError: true
in you powershell task.如果您使用的是 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'
If this not resolve your question, please share the configuration and build log of powershell task.如果这不能解决您的问题,请分享 powershell 任务的配置和构建日志。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.