Hadi Hariri.

A RunDeck Runner and a TeamCity Plugin Primer

From the archive. I wrote this in 2015 and I've left it as it was, so some of it may have aged.

Earlier this week I pushed a TeamCity plugin for RunDeck to GitHub. If you’re not familiar with RunDeck, it’s basically a way for you to schedule and automate commands to be executed on a series of machines you can specify. Each job defines a set of steps that can be a simple shell command, a script, a file copy, etc. It’s very similar to TeamCity, except its focus is interacting with services and machines as opposed to dealing with projects, builds and tests.

RunDeck Config

Using the Plugin

The plugin basically adds a new runner type to TeamCity. Once installed you can select it as a Build Step.

RunDeck Step


In terms of configuration parameters:


The rest of the parameters are pretty much self-descriptive.

A TeamCity Plugin Primer

TeamCity plugins can basically be written in any language supported on the JVM. While many are written in Java, I’ve chosen Kotlin. TeamCity plugins use Maven as the build tool and you can open the project in IntelliJ IDEA or any other IDE.

Like all TeamCity plugins that require work to be performed on the agent, it consists of three modules:


RunDeck Project

The TeamCity documentation has more information on how to get started with plugin development as well as executing and debugging TeamCity.

Contibutions welcome

It seems Paul has been running it for the past few days in production successfully, but the code does still need some clean-up and there are a few TODO’s left, including

So if you’re up to it, contributions welcome!

The archive About Hadi Hariri