Build Configuration Cancellation on "Probably hanging" message
Hello!
I been searching and looking around the documentation and from what I understand about timeouts is that there are two “types”.
-
Hanging Build Detection
- An option in the General Settings that seems to only update the UI with a message when it detects that no output has been logged for an estimated amount of time that TeamCity estimates.
-
Execution Timeout Build Failure
- In Build Failure Conditions, you can setup a timeout after a build has ran for a set amount of time.
My question is, is there an option that I can set the cancellation of a build if a build was marked as “probably hanging” for a set amount of time?
I have builds that once in a while, could take 6 hours, and keeps putting output into TeamCity. I want to only timeout a build if no output has been logged after a certain amount of time.
Thanks in advance!
David
Please sign in to leave a comment.
Hi David,
It seems that there is no build-in feature now.
As a workaround, you can add the Notification build feature - Email. Then, use a service like SendGrid to set up a webhook that triggers an event, which calls a REST API to cancel the hanging build whenever an email is received.
To ensure we capture your ideas effectively, we invite you to share any feature requests/bugs at Youtrack.
Best Regards,
Tom
Hi Tom,
Thanks for the quick reply!
That is what I thought, I just wanted to make sure. I created a ticket in Youtrack with our use case, might be something others would be interested in. TW-91736
Cheers!
David
It seems that it is duplicated with https://youtrack.jetbrains.com/issue/TW-26989/Plugin-Settings-rule-to-stop-hanging-builds.
Feel free to vote for this issue and monitor its progress through the provided link.
Best Regards,
Tom