Jenkins - Continuous Integration Tool
Agenda
To understand Jenkins and explore on how to configure automated tests to run on Jenkins.
Installation & Configuration
- Download "Generic Java package .war" from Jenkins download and deployment
- Navigate to path where war file to downloaded and run "java -jar jenkins.war -httpPort=8080"
- invoke http://localhost:8080 and proceed with the steps that are defaulted and set up login details.
- Once you landed on Dashboard --> Manage Jenkins --> Global Tool Configuration --> Configure Maven and Java home paths.
Create Jenkins Job - Local Project
- Click on New Item --> Job Name --> Select Freestyle Project
- 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.
- Add a build step --> top level maven targets --> select your maven version --> goal Ex: test --> click on OK and run your job
- you can pass arguments in the maven command like test -Ddevice="emulator"
- and we can parameterize those values as well by creating choice parameters in the jenkins job
Comments
Post a Comment