Before we begin, make sure you have the following things ready:
- The Maven tool configured inside the Global Tool Configuration page (refer to the section: The Global Tool Configuration page).
- Install Pipeline Maven Integration Plugin.
- The Java tool is also needed to build the Maven project, but since we are building our code on Jenkins master (which already has Java JDK), we can skip installing the Java tool.
- Install GitHub plugin (already installed if you have chosen to install the recommended plugins during the Jenkins setup wizard).
- Make sure your Jenkins URL is accessible from the internet. If you are using a staging or a development environment to perform this exercise, and your Jenkins server doesn't have a domain name, ...