简体   繁体   English

是否可以在Visual Studio Team Services中运行构建步骤,而不考虑构建步骤是否失败

[英]is it possible to run a build step in Visual Studio Team Services irrespective of failure of a build step

I am running an automation build using visual studio team services and I am having a series of build steps. 我正在使用Visual Studio团队服务运行自动化构建,并且正在执行一系列构建步骤。 One of the build step ( and the last ) build step is to shut down all the VMs using powershell script. 构建步骤之一(也是最后一个构建步骤)是使用powershell脚本关闭所有VM。

This build step is executed if all the previous build step passes. 如果所有先前的构建步骤都通过,则执行此构建步骤。 But if any one of the build step fails, the subsequent build step and also last build step does not get executed. 但是,如果任何一个构建步骤失败,那么后续的构建步骤以及最后一个构建步骤都不会执行。

Is there a way to execute the final build step irrespective of the other build step 有没有一种方法可以执行最终的构建步骤,而与其他构建步骤无关

Yes, check the "Always run" option of the step. 是的,检查该步骤的“始终运行”选项。 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM