What Is the “Build Periodically” Feature?
As far as Jenkins is full of automation support to all modern developers to make the best of there work, Build Periodically Function offers the automation at the next level. By using the “Build Periodically” you can perform jobs/tasks at a specific time intervals which are being defined to it, specific time is being set by using a job scheduling syntax called as Cron-like syntax.
Cron syntax is basically a five field pattern consisting of characters and expressions through which jenkins would get commanded to perform a job at a given specific interval of time and add efficiency and reliability to your job. The Format for the Cron syntax in Jenkins may be varied from the standard cron syntax or expression.
Jenkins Cron Syntax/Expression:
let us see everything about the Jenkins Cron syntax in brief-
Generally, Cron syntax is mostly seen to be used in Build periodically and Poll SCM features in Jenkins. The Cron syntax has a particular type of syntax and format to be used in Build Periodically, which is as follows:
Syntax:
MINUTE HOUR DOM MONTH DOW
Above given is the syntax in a particular format for the same and from the table given below is basically the explanation of the terms mentioned in the syntax, as this terms generally tells Jnekins that when the job should be performed or run:
MINUTE |
HOUR |
DOM |
MONTH |
DOW |
---|---|---|---|---|
Represents minutes within an hour (0-59) |
Represents the hour of the day (0-23) |
Represents Date of Month (1-31) |
Represents Months in a year (1-12) |
Represents Days of Week (0-7) Where 0 & 7 are Sundays |
Let Us See A Real Time Use Case:
Let us say you have a small startup group planning an app development project, where all been interacting through Jenkins for its Continuous Integration and Continuous Deployment features. You will schedule Jenkins to work at night time by there Build Periodically feature, when you will do changes to your code at the day time and your written lines of code will get Build, Test, Run, Deployed at night by which you can get a complete report in the morning time over the code you have written, and also that can help you to go through the app development status early.
It does sound Cool and Automated!, right?
Now, then let’s see, How can you access Build Periodically to automate your jobs.
What Is Build Periodically In Jenkins?
As we are traversing modern developments in the world and grasping the edge of AI (artificial intelligence) and automation, Jenkins stands as the helping hand for the developers with the key magic of automation. In this article, we will unravel one of the best features of Jenkins in the automation field for development.
Most of your common questions will be answered, like:
- What is the Build Periodically function of Jenkins?
- What is it capable of in the era of automation?
- and some of its key uses and profits.
So, stay tuned till the end of the article, when all aspects of the topic and your doubts will be cleared.
Contact Us