Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Automatic build tasks in Jenkins-Calendar Settings

Shulou Source: shulou.com Published: 2022-06-03 06:35:29 09月16日 Update

You can choose how to trigger a task when building a task with jenkins. Here are some syntax for fixed-time triggering that has nothing to do with the build of the code.

First, build task-build trigger-check timing build

Here you can set 5 parameters (from left to right) on one line:

The first one is for minutes (0: 59) H for random

For example:

12 * build once in the 12th minute of every hour

Hmax 5 * build every 5 minutes

H (1-23) is triggered by a random point of 1 to 23 minutes per hour.

The second is the representative hour (023)

For example:

H 6-18 ram 2 * build every 2 hours from 6am to 6pm

H Humber 2 * is built every 2 hours

12 15 * trigger the build at 15:12 every afternoon

* the third one represents any day * *

For example:

20 16 15 build once at 16:20 on the 15th of every month

10-15 is built sometime from the 10th to the 15th of each month.

The fourth is the representative month (January to December)

For example:

Hmax 3 12 H (1-6) * from January to June, the 12th of a random month is built every 3 hours.

The fifth is for the week (0,7) 0 and 7 for Sunday.

For example:

Every October 5th to 30th of every October, from 10:00 to 20:00 from Monday to Friday, it triggers every 2.5 hours.

Tags: Hour representative task time month order point to line three code parameter week trigger syntax selection schedule calendar Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Tech Info OPPO Reno vpn NVidia