Jenkins is a powerful tool for automating continuous integration. One of the simplest ways to implement CI for a software application is to configure a freestyle project in Jenkins. With a freestyle project, you can configure Jenkins to execute a build every time a change is made to the source code.
Learning to configure a freestyle Jenkins project will also prepare you for more advanced ways of utilizing Jenkins. After completing this exercise, you will know how to implement a freestyle Jenkins build for an application.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Create a New Jenkins Freestyle Project Called train-schedule
In Jenkins, click on New Item. For the item name, type
train-schedule
, and select freestyle project.
Then click the OK button.- Trigger a Successful train-schedule Build with a Change in GitHub
Once the
train-schedule
project is fully configured, let’s make a change to the source code in our GitHub fork. This should trigger a successful build of thetrain-schedule
project.