When Teamcity makes successful build, it outputs green "Success" label (or "Tests passed...").
Can I customize this label, for example, output environment variable there?
You can customise the build status message shown for completed builds using the TeamCity service messages. The TeamCity documentation describes in good detail the format for these messages, which just need to be outputted to stdout. Following is an example of the build status message:
##teamcity[buildStatus status='SUCCESS' text='{build.status.text} and some aftertext']
Build Script Interaction with TeamCity documentation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With