Build Monkey

Following in the footsteps of the Netflix Chaos Monkey, I created a Build Monkey.

If you point it at a TeamCity instance (with the REST API plugin installed), it will randomly select a build and run it.

The idea is to make sure that all builds get run reasonably regularly, and avoid the unpleasant surprise when one that hasn’t been run for 6 months explodes in your face.

(At the moment it won’t run builds with “Live” in the title e.g. “Deploy Foo to Live” (because I’m a chicken :). But really these should also be run regularly, even if the code hasn’t changed).

It would be better if it was biased towards builds that hadn’t been run recently, but I’m not sure if the TeamCity REST API provides enough data for that.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s