1.

How do you schedule a build in Jenkins?

Answer»

In Jenkins, under the job configuration arrangement, we can characterize different build triggers. Basic discover the 'Build Triggers' segment and check the ' Build Periodically' checkbox. With the occasionally build you can plan the construct definition by the date or day of the week and an opportunity to execute the assembly. The configuration of the 'Schedule' textbox is as per the following:

MINUTE (0-59), HOUR (0-23), DAY (1-31), MONTH (1-12), DAY OF THE WEEK (0-7)

In the activity design page, we should look down directly to the Build Triggers area. Since we expect to make a direct activity, we should choose the checkbox STAMPED Build intermittently. When we select this checkbox, a Text Box is shown with the Schedule name. We need to offer some benefit in a Cron-consistent arrangement. There's broad data accessible on the page in the event that we click the QUESTION mark next to the textbox.

Let’s type */2 * * * * here, which represents an interval of two minutes:l

After selecting out of the content box, we can see data directly underneath the container. It enlightens us regarding when will the activity KEEP running straightaway. How about we spare the activity – in around two minutes, we should see the status of the principal execution of the activity:

Since we’ve configured the job to run every two minutes, we should see MULTIPLE build numbers when we go BACK to the job dashboard after waiting for some time.



Discussion

No Comment Found