My goal is to update the build status on the overview page using a service message from a build runner. I'm new to service messages and I cannot get this to work.
I've attached a file to show which status message I mean. Normally it says Success but I need to customise it.
So I have a build process that implements jetbrains.buildServer.agent.BuildProcess. I've implemented the call() method that return a BuildFinishedStatus. It works great, I can write to the log using BuildProgressLogger. However, I don't know how to set the build status message on the overview page.
I've found a documentation here: https://confluence.jetbrains.com/display/TCD7/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-ReportingBuildStatus
That sounds like exactly what I need. It says of service messages that "In order to be processed by TeamCity they should be printed into standard output stream of the build".
I tried a couple of approaches within the call() method, like:
String statusMessage = String.format("##teamcity[buildStatus status='%s' text='%s']", "SUCCESS", "This is some custom text");
...and various others but status message remains "Success" at the end of the build.
So what do I need to do to proceed? Anything on the server side as well? Anything GUI related?
I appreciate your assistance,