Jenkins - Continuous Integration Tool

 Agenda

To understand Jenkins and explore on how to configure automated tests to run on Jenkins.

Installation & Configuration

  1. Download "Generic Java package .war" from Jenkins download and deployment
  2. Navigate to path where war file to downloaded and run "java -jar jenkins.war -httpPort=8080"
  3. invoke http://localhost:8080 and proceed with the steps that are defaulted and set up login details.
  4. Once you landed on Dashboard --> Manage Jenkins --> Global Tool Configuration --> Configure Maven and Java home paths.

Create Jenkins Job - Local Project

  1. Click on New Item --> Job Name --> Select Freestyle Project
  2. under General --> Custom workspace --> give the path of your project which was copied to jenkins folder Ex: C:\Users\Vinay\.jenkins\YourProject


Note: you can give your location of your project as well.
  1. Add a build step --> top level maven targets --> select your maven version --> goal Ex: test --> click on OK and run your job
  2. you can pass arguments in the maven command like test -Ddevice="emulator"
  3. and we can parameterize those values as well by creating choice parameters in the jenkins job


Create Jenkins job with Github Project

  1. Click on New Item --> Job Name --> Select Freestyle Project and configure like below with maven goal.





Comments

Popular posts from this blog

TestNg - Test Automation Framework

React Js and Redux

Appium 7 - Android Test Automation