Build status and actual results are not the same
When we run our tc builds we have all builds status are success (even if the build actually failed):

but if we go to specific build log we will get an error: 
How can we sync the build result and build status
Please sign in to leave a comment.
Hi! Apparently, the build was failed by a Failure Condition. TeamCity would set the build status to "FAILURE" in such a case. However, it seems that something has changed the status. One could do it by sending a Service Message like the one below from a build step:
Another way it could be done is by marking the build as successful in UI or via REST API, but it doesn't seem to be your case because changing a build status of a finished build through UI or REST API requires a comment which would be visible in build history.
To undo the status change, you can update the build status in UI (click three dots next to a finished build in the history > Mark as failed...) or script it with REST API. Here's a curl example:
curl -u username:password "http://teamcity:8111/app/rest/builds/id:123456/status" --request POST --header "Content-Type: application/json" --data '{"status":"FAILURE","comment":"changed status via REST API"}'To prevent the status change to "SUCCESS" in the first place, please review the build to make sure it doesn't issue a Service Message that would change the build status. Feel free to attach a full build log (go to the Build Log page > Download log > select Full build log or Zip), and I will have a look into it.
Hi D27192001. Sorry about the delay. If the issue is still occurring, we will need to see the details below. Feel to upload them via https://uploads.jetbrains.com/ and post your upload ID.
In the meantime, you might be able to work around the issue by restarting the server.