如何设置TeamCity在构建失败时不生成构建工件? [英] How do I set TeamCity to not produce build artifacts when the build fails?

查看:128
本文介绍了如何设置TeamCity在构建失败时不生成构建工件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何设置TeamCity,以便在由于单元测试失败而导致构建失败时不发布构建工件?我很确定它可以在6.0版之前以这种方式工作,但是由于升级到6.0版,即使测试失败,它也始终会产生伪像.我已选中如果至少一项测试失败,则构建失败".

How do I set up TeamCity so that it does not publish build artifacts if the build fails because a unit test failed? I'm pretty sure it worked this way prior to version 6.0, but since upgrading to 6.0 it always produces artifacts even if a test fails. I have "Fail build if at least one test failed" checked.

我们的电子邮件通知中断了,我不知道我们有构建问题,因为它继续产生工件.

We had an outage with the e-mail notification and I didn't know we had a build problem because it continued producing artifacts.

推荐答案

请注意/投票解决此问题:

Please watch/vote for this issue: http://youtrack.jetbrains.net/issue/TW-12194

这篇关于如何设置TeamCity在构建失败时不生成构建工件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆