Selenium
integration with Jenkins
2.
Open Command
prompt, navigate to Jenkins.war file directory and type (java -jar jenkins.war) and click on enter.
Note: Should display "Jenkins is fully up and running" message on CMD
3. Once Jenkins server is up and running, Open any browser and type the url http://localhost:8080
Note: Should display "Jenkins is fully up and running" message on CMD
3. Once Jenkins server is up and running, Open any browser and type the url http://localhost:8080
4.
Click on > Manage Jenkins
5.
Click on > Configure System
6.
Click on > Add JDK button (Under JDK Section).
7.
Uncheck "Install automatically"
check box
8.
Give the “Name” as JAVA_HOME
9.
Give the "JAVA_HOME" path (EX:
C:\Program Files\Java\jdk1.8.0_60)
10.
Configure Email notification (Optional)
11.
Click on save and apply
12.
Click on "Add Build Step" -> “Execute Window batch
command”
13. Give batch file name and click on Apply and save
13. Give batch file name and click on Apply and save
14.
Click on “New Item” option
15.
Give the “Item Name” (Job-Name)
16.
Click “Build a free-style
software project” radio button
18.
Navigate to “Advanced Project
Options”
19.
Check the “Use custom workspace”
20.
Give "Directory" as the
project home directory
21.
Click on ‘Build Now” option
22.
Click “Console Output” to verify
the output
Schedule a build in Jenkins
for periodic execution
23.
Open job which we created
24.
Click on “Configure”
25.
Select “Build periodically” check
box
·
Example 1- if you specify 00 22 * * *
it means your build will run daily @ 10 PM
·
Example 2- if you specify 50 * * * *
it means your build will run daily
50 min after every hour
·
Example 3- if you specify 00 22 1 * *
it means your build will run every monday @ 10 PM
26.
Click on Apply and Save buttons
Jenkins
will accept 5 parameter lest discuss one by one
*
* * * *
- Here first parameter- specify minute and range will vary from 0-59
- Here second parameter- specify hours and range will vary from 0-11
- Here third parameter- specify day and range will vary from 0-7 here 0 and 7 will be Sunday
- Here fourth parameter- specify month and range will vary from 1-12
- Here fifth parameter- specify year so here you can specify *
No comments:
Post a Comment