Do not re-add build because of unexpected finish in TeamCity
Asked Answered
F

2

7

How can I disable auto-restart tasks in TeamCity after a failed build? I can't find this option anywhere.

I saw only one message in Overview section after auto-triggered build: "Re-added because of unexpected finish"

Fanjet answered 20/7, 2015 at 15:42 Comment(0)
D
4

There is a parameter which can be specified on a project or build configuration level: teamcity.buildQueue.restartBuildAttempts

By default it's value is 3, so TeamCity makes 3 attempts to restart build in case of unexpected finish. You can set it to 0 to disable this behavior.

Disagreeable answered 21/12, 2017 at 15:31 Comment(0)
G
0

Update: Pavel Sher's answer shows how to disable this functionality.

Original answer:
Currently (as of TeamCity version 2017.2), it does not seem possible to disable this "feature".

I searched through the TeamCity documentation, support forum, and issue tracker, but I could not find any more information about this behavior.

I did create a new feature request for them to allow us to disable this functionality:
TW-53064 - Allow disabling of automatic re-queing after unexpected finish

Guillemette answered 21/12, 2017 at 14:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.