O'Reilly logo

Test-Driven Java Development - Second Edition by Viktor Farcic, Alex Garcia

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Jenkins installation

Jenkins is a very powerful tool and easy to learn. In this section, we are going to prepare the environment, which consists of a virtual machine running a Docker image of Jenkins. This setup is for demonstration purposes; for real scenarios, it will be better to install it in a dedicated server with more resources, or get it as a service from a company like CloudBees. In this particular case, all the configuration is located in the Vagrantfile:

Vagrant.configure("2") do |config|  config.vm.box = "ubuntu/trusty64"  config.vm.box_check_update = false  config.vm.network "forwarded_port", guest: 8080, host: 9090  config.vm.provider "virtualbox" do |vb|    vb.gui = false    vb.memory = 2048  end  config.vm.provision "docker" do |d| d.run ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required