Jenkins Notes
Jenkins Notes
5.
Wait for the message Jenkins fully up and running
Don’t close the window. This is the jenkins server that should always run in the back ground
6. Once installation is done, open any browser navigate to the
Jenkins Dashboard Enter url as “http://localhost:8080” by default .
8.Copy password from required given location and paste it in admin
password.
C:\Users\sushma\.jenkins\secrets\initialAdminPassword
9.Click on continue and select install suggested plugins
10.After downloading the suggested plugins click on continue as
admin
11.Click ok save and finish
12.Click on “start using Jenkins”
13.When you open url next time (http://localhost:8080) it will ask
username and password because you continue as Admin
UserName is “ Admin”
And Password from the following location
C:\Users\kiran\.jenkins\secrets\initialAdminPassword
Setup Build
Create Jenkins Project:
1. Go to the Jenkins dashboard and Click on New Item
2. In the next screen, enter the Item name, for example HMS.
Choose the MAVEN PROJECT and click OK
To run job at required time we can schedule date and time. If we need run run instantly we need
to go to project in Jenkins and click on Build Now
5. Once saved, you can click on the Build Now option and build is
scheduled, it will run.
The Build history section shows that a build is in progress.
6. The build is completed, a status of the build will show if the build
was successful or not. Click on the #1 in the Build history to bring up
the details of the build -> Console Output link to see the details of the
build
Click the drop down button button and Select ”Email notification” option. In
the recipients text box specify the receivers mail id followed by
==============================================
==============================
Jenkins uses Cron format on scheduling. Suppose we are executing some tests repeatedly in
certain interval of time instead of performing that test again and again we schedule the test
execution by specifying the interval .So when the schedule time is reached the test execution will
be done automatically.
...
The steps for schedule jobs in Jenkins:
5. Add time schedule in the Schedule field specify CRON pattern as follows,
If you want to schedule your build every 5 minutes, this will do the job : */5 * * * *
If you want to schedule your build every day at 8h00, this will do the job : 0 8 * * *
Click on save button
*****
First star indicates MINUTE Minutes within the hour (0-59)
Second star indicates HOUR The hour of the day (0-23)
Third star indicates DOM The day of the month (1-31)
Fourth star indicates MONTH The month (1-12)
Fifth star indicates DOW The day of the week (0-7) where 0 and 7 are
Sunday.
6 is saturday
5 * * * * will only execute the job every 5min past every hour
*/5 * * * * for every 5mins
So how to build periodically after every 6hrs. Does * */6 * * * will work? –
Spread load evenly by using ‘H/5 * * * *’ rather than ‘*/5 * * * *’ –
friederbluemle Apr 4 '14 at 7:49