Bamboo 2.2 : Send Errors to stderr - Script Builder in Visual Studio WinXP to build Solutions Files
This page last changed on Nov 24, 2008 by alui.
To display an Error Summary for erroneous builds in bamboo build summary is not available for the Script Builder - going through the build logs seems tedious.
#!/bin/bash
echo "ERROR build xyz failed" >&2
would print this message into the build summary section. It is up to you to insert the appropriate messages into your build script. ProblemThe actual problem is devenv.com/msbuild SolutionI solved the issue by writing a simple Ruby script that invokes the build tool and filters the stdout stream for any build script.ry pipe = IO.popen("devenv.com #{$*[0]} /Rebuild ") errors = 0 warnings = 0 while line = pipe.gets if line =~ /^.* : .* error .*$/ $stderr.puts line errors += 1 elsif line =~ /^.* : warning .*$/ $stderr.puts line warnings += 1 else $stdout.puts line end end exit errors > 0 ? 1 : 0 Related PagesKnowledge Base - (BSP-1381) Script Builder Display build errors in Error Summary |
![]() |
Document generated by Confluence on Mar 09, 2009 17:07 |