开发者

When a Build Step fails in a team city build can I stop future build steps?

开发者 https://www.devze.com 2023-04-12 17:44 出处:网络
I am using TeamCity as my CI server. I have defined three Build Steps. One builds my project from the .sln file, one runs tests using MSTest the final one packages up some of the dlls and exes the pr

I am using TeamCity as my CI server.

I have defined three Build Steps. One builds my project from the .sln file, one runs tests using MSTest the final one packages up some of the dlls and exes the project produces into a deployment package.

Currently even if some tests开发者_开发问答 fail the deployment package is still created. How can I stop Team City from processing further Build Steps if one has a problem?


Seems I am not the only one with this problem.

http://youtrack.jetbrains.net/issue/TW-12194

I am not sure how to adjust my scripts to know if things upstream have failed.


In the build conficguration genneral settings page, there is "Fail build if" section.

There is a checkbox in it which says "at least one test fails".

Is it checked?

When a Build Step fails in a team city build can I stop future build steps?

0

精彩评论

暂无评论...
验证码 换一张
取 消