Jenkins monitor in terminal

We use jenkins for our builds and it works great. However, a year ago I was just fed up with going to the browser everytime I wanted to get a quick update on how things where going. As the terminal freak I am, I created a simple jenkins monitor for the terminal called cJenkins. It’s been very useful for me, so I wanted to share it with you as well.

How it's put together

It’s a python script that uses curses to create the GUI.

It shows the most basic information about the jobs. Status, if the jobs are building at the moment, and a description of the last run. If the terminal isn't big enough, it will leave out parts of the information to fit the window.

How to use it

Let's go through how to set up cJenkins.

Get the script

First, you need to download the script. You'll find the script here.

Run it

To run it, you simply execute the script with the jenkins url as an argument.

$ python cjenkins -l <url to jenkins>

As you can see in the image, the script also supports several jenkins'. To manage this, just list them as arguments to the script.

$ python cjenkins -l <url to jenkins 1> <url to jenkins 2> ...
Alias it

To make it more convenient, you should alias the command. That way you don't have to write such a long command everytime you want to start the monitor.

alias jen="/<path>/ <url to jenkins>"  

Now you can just type jen to open the monitor.

You should also add the alias to your .bash_profile to make sure it's always there.

That's all you have to do. I hope you find it useful.