We have a script which, under certain circumstances, will change the status of a failing build back to 'SUCCESS' using the Service Message:
##teamcity[buildStatus status='SUCCESS' text='Success (script)']
as documented in https://confluence.jetbrains.com/display/TCD9/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-ReportingBuildStatus
This worked fine for several months on TeamCity 8.x, but since uprading to TeamCity 9.1.1 we are experiencing intermittent cases (approx 1 in 10) where the buildStatus remains 'failed' even after this line is output. The failures do not seem to be associated any particular build config or agent.
Is this a known issue with TC 9.1.1?
Does anyone know of a work-around?