Intermittent failures when changing buildStatus to 'SUCCESS' using Service Message on TC 9.1.1
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?
Thanks,
Geoff
Please sign in to leave a comment.
Hi Geoff,
Could you please attach full build log of the build with the incorrect status?
We are outputting ##teamcity[buildStatus status='SUCCESS' text='Success (script)'] to reverse and earlier failure (the fact that it is in there three times is just to try to work around this problem). However as you can see from the attached screen-shot the build still shows as failed with the annotation "Success (script)".
Geoff
[13:33:09]Skip checking for changes - changes are already collected
Attachment(s):
TC_failure.png