Vagrant Jenkins

Prerequisites

Installation

Build the vagrant box

vagrant up

To access the Jenkins server

http://localhost:6969

or, add the following line to the hosts file

127.0.0.1   jenkins.dev

and then run the server with

http://jenkins.dev:6969

First time accessing Jenkins

Since version 2.0 Jenkins has a security setup wizard when first running it after the installation.

SSH into the machine with

vagrant ssh

Locate the security password

cat /var/lib/jenkins/secrets/initialAdminPassword

and copy it into the password field on the Jenkins server.