简体   繁体   English

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

[英]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.

相关问题 Powershell脚本任务output的AzureDevOps Pipeline变量赋值 - AzureDevOps Pipeline variable assignment of Powershell script task output 使用Windows Task Scheduler运行的PowerShell脚本未运行SQL Server SSIS DTEXEC.EXE作业 - PowerShell script run using Windows Task Scheduler is not running a SQL Server SSIS DTEXEC.EXE job 通过 shell/pyhthon/powershell 脚本将 AzureDevops 提要视图中的 npm 包从@local 提升到@pre-release 再到@release? - Promote npm packages in AzureDevops feed view from @local to @pre-release to @release, through shell/pyhthon/powershell script? 使用OdiOSCommand执行Powershell脚本 - Executing powershell script using OdiOSCommand 通过SQL Server代理作业使用WinSCP执行REMOTE Powershell脚本时出现问题 - Problem executing REMOTE powershell script using WinSCP via SQL Server Agent Job 通过 YAML 发布管道运行 azure powershell 脚本 - Running azure powershell script through YAML release pipeline 如何将powershell脚本变量值传递给Release管道中的下游任务 - How to pass powershell script variable values to downstream task in Release pipeline 执行需要Jenkins管道参数的Powershell脚本 - Executing Powershell script that requires arguments from Jenkins pipeline 使用powershell在ssis服务器sql作业上使用sql查询 - Using sql query on ssis server sql job using powershell Azure DevOps发布管道 - 在括号内使用带有管道变量的Powershell - Azure DevOps Release Pipelines - Using Powershell with Pipeline variables inside brackets
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM