Is that possible to extend TeamCity so that it reboots virtual machines hosted on ESX(i) if agents residing on the VMs become non-responsive?

Hi All,

I tried to find any similar question in the community discussion but failed.

We are currently evaluating TeamCity as CI platform to migrate our Kernel Mode Driver projects for Mac/Linux/Windows to. As our product is Kernel Mode driver, it could and actually does kill the test machines (BSOD, Kernel panic, etc.).

So I wonder if it is possible to develop a plugin that fits TeamCity's architecture and can try to reenable 'dead' agents by using ESX API to return test machines to snapshots and power them on using ESXi API after agents became non-responsive?

1 comment
Comment actions Permalink

Hello,

Yes. You may write such plugin. TeamCity has connected/disconnected agents. You may fetch the list of agents and detect if agent machine was crashed (would mean disconnected in TeamCity).
For more details see BuildServerListener listener interface and/or BuildAgentManager.
Take a look at the documentation: http://confluence.jetbrains.net/display/TCD7/Developing+TeamCity+Plugins

We have VMWare cloud plugin. You may take a look on it as reference: http://confluence.jetbrains.net/display/TW/Cloud-VMWare+plugin

0

Please sign in to leave a comment.