TeamCity build should stop when compilation fails

Hi All,

we are using MSBUILD scripts to compile C++ projects through TeamCity .(TeamCity Enterprise 2017.1.2)

But when compilation gets error/failed , TeamCity is not stopping build step immediately and its continuing hence it is taking long time for exit.

please check the below snapshot.

Actually compilation failed but TeamCity is continuing the build without skipping/failing.

Below is the Msbuild commandline parameter -

msbuild Test.proj /p:Version=7.2.50;ContinueOnError="false"

 

Appreciate for your help.

 

Regards,

Rambabu

0
2 comments
Avatar
Permanently deleted user

When compilation failed with errors , then TeamCity should stop the build step and exit TeamCity Agent.

0

Hi,

this was discussed in a private conversation, but I would like to point it out for other people checking this post:

From TeamCity's side, this behavior is intended. Further build steps can be configured to run even when a step fails, which renders the "exit the agent" part non-viable. Also, in case a compilation error happens, more unrelated compilation errors could be found later, so continuing the process might provide valuable information for the user. This is particularly obvious by tests. A failed test should not stop compilation, and information on all tests should be reported.

The issue would be if the "Continue on error" parameter is not being honored, but if it's passed as a command line, then it's msbuild who is failing to stop the build process, so probably their devs should be contacted in this instance.

0

Please sign in to leave a comment.