I recently talked about how to automate Jenkins using job-dsl. We are going a bit further here.
Jenkins is usually the frontend for projects to check their build status, but for some, Jenkins is the product that we develop, or where we drop plugins etc. In that case, we don’t want to do this into production.
In our case we work with Open Nebula as a VM provider, so it is fairly easy to create a quick VM to test something and then just remove it. It is not as common as having your own Jenkins instance, but since I found that I was doing this quite commonly, it was time to automate.
In this post I present an automatic way to set up a quick Jenkins host. So I just have to type a command and come back later.