To configure a build system, there needs to be configure JDK, ANT/MAVEN, SCM configuration details, automating build options email notifications and other important things. Below are the steps to be followed in order to configure the same. In the below case we have considered the project to be a Maven Project.
In order to configure the SCM for the build system, under the "Source Code Management" system, select the required SCM option for your required project and provide the details accordingly.
Note : More than one repository URL can be configured in the Jenkins.
Jenkins proved multiple options to trigger the builds. Below are the same :
User can configure multiple options from the above list. Below screen shot shows how to configure a build based on a CRON job (by selecting the option Build Periodically)
The above mentioned CRON expression triggers build on 5 AM and 10 PM every day, every month repeatedly!
For any maven project to be built in Jenkins, the entry point is the pom.xml. The easy way to configure a project's build is to point to the pom.xml of the project as shown below :
Also, there are many other options which can also be configure here as shown above.
Jenkins provides the feature to configure the notification service by sending the mails configured for every build runs. It can be configured a shown below :
Jenkins also provides feature to configure activities that needs to be executed post build. Below are the options available :