Tomas Kubes
Tomas Kubes

Reputation: 25098

Build failed after TeamCity agent shutdown

We have TeamCity with several agents and some agents run on employee's/programmers computer. If the employee shutdown computer in the evening, the running build is mark as failed and email notification is sent. Is is possible in the case of shutdown, to mark the build as cancelled and choose different agent and run the build again on different agent?

Upvotes: 0

Views: 597

Answers (2)

AdamSkywalker
AdamSkywalker

Reputation: 11609

I guess if the computer is shutdown while TeamCity build is running, it [build] will be marked as failed anyway. So the question is how to rerun build after failure on new machine.

You can create agent pools and assign several build agents to the pool. After that you should edit 'Agent requirements' setting in build configuration, so your build can be run on any alive machine.

You can use 'Retry build trigger' in trigger sections to rerun your build after failure. It will rerun all failed builds, but it is OK for your problem

Upvotes: 1

Related Questions