Build periodically
The first build trigger we are going to use is the periodic built trigger. This trigger is pretty handy when you have some tasks that can be executed every few hours, once a day, and so on. For our build, it has a downside. Cron is flexible enough to express a schedule like -every hour between 9 AM and 5 PM (or 9:00 and 17:00), so you can do periodic builds during office hours. Of course, you can also still trigger a build manually in case you are working overtime. The downside to this trigger, for us, is that we may have no commits for a few hours, but we will have builds. Or worse, we have multiple commits in one hours and they will all be tested at the same time.
When our build fails, we will not know what commit made ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access