Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Teamcity Custom Script Log Output

Tags:

teamcity

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?

like image 582
row1 Avatar asked Aug 07 '12 05:08

row1


1 Answers

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>']

like image 78
infojolt Avatar answered Jan 02 '23 11:01

infojolt