首页 文章

当“构建过程退出代码不为零”未选中时,团队城市构建失败

提问于
浏览
1

我有几个构建步骤需要运行,无论(测试失败,在这种情况下) .

但是,当一步测试失败时,整个构建失败并退出 . 为了克服这个问题,我在 build process exit code is not zero “ .

在此之后,构建在第2步更快地失败,这是安装grunt-cli

是否有(更好的)方法让我的构建继续,即使在上一步的非零退出?我试过静音,但这不是我所希望的 .

TeamCity Enterprise 9.1.7(build 37573)

Failure Conditions

This only happens when "the build process exit code is not zero" is unchecked

2 回答

  • 0

    配置构建步骤时,可以将 Execution policy 的执行条件设置为: Even if some of previous steps failed

    如果要在执行测试后对代理进行一些清理,也可以设置为: Always, even if build stop command was issued .

  • 0

    如果这是命令行构建步骤,则可以添加“exit 0”以强制退出代码始终为0.由于您要报告测试,您仍将在TeamCity中看到失败的测试 .

相关问题