Creating the CI pipeline
In this section, we will learn how to create the CI pipeline discussed in the previous section. We will perform the following steps:
- We will create a source code repository in GitHub
- We will create a Jenkinsfile to describe the way we build, unit test, perform static code analysis, integration test, and publish built artifacts to Artifactory
- We will utilize Docker to spawn build agents to run our CI pipeline
- We will create a Multibranch Pipeline in Jenkins
It is important that you have configured the Configuring Webhooks on GitHub from Jenkins section from Chapter 3, The New Jenkins.
Creating a new repository on GitHub
Let us create a new repository on GitHub. Make sure you have Git installed on the machine that you will use to perform the steps mentioned in the following section:
- Log in to your GitHub account.
- In this chapter, we will use the source code from https://github.com/nikhilpathania/hello-world-greeting.git as an example.
- Try to fork the repository mentioned in...