7
votes

I use a very basic Custom Script in TeamCity 7.0.3 which uses Visual Studio 2010 to build a solution and its installers.

The build was failing and the only relevant error in the TeamCity Build Log is

[13:17:13]Process exited with code 1

When I run the same script from the console, I get a lot of helpful errors about why the build failed.

How can I get TeamCity to include the errors from devenv.exe?

1
Did you open the log file itself and not just look for info on the build tab ?Orn Kristjansson
Just looking on the build tab.row1
Well that's just an overview, on the upper right of the page you should be able to download the build log. Open that up and see if you get the more detailed trace.Orn Kristjansson

1 Answers

6
votes

You need to report back the additional info to TeamCity in a way it can interpret.

Look at this article to see how to do it:

http://confluence.jetbrains.net/display/TCD7/Build+Script+Interaction+with+TeamCity

For a basic example:

You can report messages for build log in the following way:

##teamcity[message text='<message text>' errorDetails='<error details>' status='<status value>']