Automating builds

Once we have Jenkins up and running, it is time to start using it. We are going to create a task on Jenkins that will download the thimblerig-service master branch, execute the tests, build it, and archive the resultant artifact.

Let's start by creating a Freestyle project:

We have to tell Jenkins where the repository is located. In this example, we don't need authentication, but is very likely we would need it in a real-world scenario:

The thimblerig-service project is a Gradle project. We are going to use the Jenkins Gradle ...

Get Test-Driven Java Development - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.