Documentation for Bamboo 4.0.x. Documentation for earlier versions of Bamboo is available too.

Skip to end of metadata
Go to start of metadata

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.
There is a section named "Error summary" which collects all errors during the build process that are printed to stderr. For example a build script

would print this message into the build summary section. It is up to you to insert the appropriate messages into your build script.

Problem

The actual problem is devenv.com/msbuild
not being very helpful: both build tools only append to stdout stream,
even in the case of warnings/errors during the build.

Solution

I solved the issue by writing a simple Ruby script that invokes the build tool and filters the stdout stream for any
warnings and errors via regexp; the matching warning/error lines are
then echoed to stderr and Bamboo picks them up nicely.

build script.ry

Related Pages

Knowledge Base - (BSP-1381) Script Builder Display build errors in Error Summary

Labels
  • None