Service Messages

Edit pageLast modified: 18 September 2024

Service messages are specially constructed pieces of text that pass commands/information about the build from the build script to the TeamCity server.

To be processed by TeamCity, they need to be written to the standard output stream of the build, that is printed or echoed from a build step.

Examples:

echo ##teamcity[<messageName> 'value']

A single service message cannot contain a newline character inside it, it cannot span across multiple lines.