In this article i will talk about how to run maven project from jenkins (continuous Integration Tool). POM.xml needs to be configured in jenkins. Will talk in detail about this.
Before we talk about install jenkins, let us understand about what is jenkins first
Jenkins is a Continuous Integration server. (Kind of advanced task scheduler). Basically Continuous Integration is the practice of running your tests on a non-developer machine automatically every-time someone pushes new code into the source repository.
Jenkins can be standalone (Using Jenkins.war file) or hosted (Install as a windows service).
Prerequisite – 1. Java JDK installed. 2. Tomcat server is configure.
Open Command Prompt.
Change directory to path where Jenkins.war is present.
From this file you can start Jenkins directly via the command line with below code –
java -jar jenkins*.war.
Refer below screen shot.
When you do this process first time, it will take some time, some processes will be running in cmd.
Once you see below message, then Jenkins installation is complete
Access the installed Jenkins via URL – http://localhost:8080/