Getting ready

In order to demonstrate the procedure, we will need a Jenkins instance. Every company will have a different setup so, in order to make things more predictable, we will work with a local version of Jenkins.

Jenkins is a Java app but still, the easiest way to get a running ephemeral instance of Jenkins for our example is by using Docker. With Docker installed and running on your machine, simply run:

$ docker run --rm -p 8080:8080 jenkinsci/blueocean

This instance of Jenkins won't leave behind any traces of itself once the docker container is stopped.

The logs will start appearing on your console and they will contain the password for the first login. Look for something that appears as follows:

************************************************************* ...

Get Git Version Control Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.