Page MenuHomePhabricator

[CI] Improve teamcity error reporting by setting the failure message
ClosedPublic

Authored by Fabien on Jul 3 2020, 20:11.

Details

Summary

This turns the build status to failure with a dedicated message when a
timeout occurs, rather than exit code, and sets a better message in all
the other cases. It also makes it possible to search for the error in
the clean log file.

Test Plan

Run any CI build.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested review of this revision.Jul 3 2020, 20:11
Fabien planned changes to this revision.Jul 3 2020, 20:36

Sync to make sure the build logs are complete before aborting

Fabien planned changes to this revision.Jul 3 2020, 20:41
  • Actually write to the log BEFORE publishing the artifacts...
  • Override the build status message in case of a failure

Deduplicate the status message

Don't keep the original message in case of a failure

This revision is now accepted and ready to land.Jul 3 2020, 21:47