Jenkins is an open source automation tool for Continuous Integration (CI). Jenkins supports thousands of build in plugins. Jenkins is more popular in java developer community for CI purpose. Jenkins is one of the main automation tool in the list of DevOps. In Jenkins we can create the pipelines of the jobs. Pipeline can be created in various ways. We can configure the Jenkins for three stages such as Build, Test and Deployment Stages with the help of the various jobs. Build Stage: We can configure the git repository along with maven (Build manager). Jenkins triggers a build for every change made in the source code repository for example Git repository/Git Hub/Bitbucket etc.

Test Stage: In this stage we can configure the selenium /JUnit automation tool with Jenkins. After the code is built, it deploys it on the test server for testing. Concerned teams are constantly notified about build and test results. Deployment Stage: Finally, Jenkins deploys the build application on the production server. With the help of Jenkins, organizations can accelerate the software development process through automation. Jenkins integrates the SDLC, including Build, Testing, Packaging, Staging, and Deployment. It also provides statistical reports.


Prerequisites for the Installation of the Jenkins

  • 1. Download and Install Java
  • 2. Install Maven, Maven can be downloaded from “"
  • 3. Set environment Variables: Go to run command and type “sysdm.cpl” and navigate to advance tab. eg.
    • a. JAVA_HOME: C:\Program Files\Java\jdk1.8.0_172
    • b. M2_HOME: C:\sumit\software\apache-maven-3.5.3
    • c. MAVEN_HOME: C:\sumit\software\apache-maven-3.5.3
  • 4. Set Path for Java and Maven tools %JAVA_HOME%\bin; %M2_HOME%\bin;%MAVEN%\bin
  • 5. Go to cmd prompt and check the installation of java and maven
    • a. java -version
    • b. mvn –version (If the relevant version of Java/Maven is display on console, It means installation and configuration for Java and Maven is done correctly.)
  • 6. For downloading the Git setup, you can use URL:
  • 7. For downloading the jenkins.war file from below
    • URL:
  • 8. Now type the below mentioned command on the command prompt
        java -jar jenkins.war --httpPort=9090
       Default port of Jenkins is 8080
  • 9. Secure Password (eg c4fa54891f8e408e818b7241ece0774d) will be displayed on the console after the
       execution of jenkins.war file
  • 10. Go to the browser and type the below URL and Jenkins will ask for credential
    • http://localhost:9090
    • User name :admin
    • Password: c4fa54891f8e408e818b7241ece0774d
    • Note: Secure password is available at
    • Path: C:\Users\hp\.jenkins\secrets\ initialAdminPassword