当前位置:网站首页>Jenkins learning (III) -- setting scheduled tasks
Jenkins learning (III) -- setting scheduled tasks
2022-07-03 09:14:00 【Fill your head with water】
Set timing task
It is obviously not convenient to build the project manually every time , Sometimes you need to execute automated test scripts regularly . for example , Execute regularly every night xxx File to run automated test projects .
1. Set timing task
Previously created “test001” Project as an example , Click on the left side of the item “ To configure ” Options , Modify the configuration of the project .
find Build trigger , Check Build periodically( Time to build ) Options .
By viewing the setting instructions , Here, the format of scheduled tasks follows cron The grammar of ( It can be done with cron There are slight differences in grammar ).
The specific format , Each row contains five fields , adopt Tab Or separated by spaces .
2. Timing rule grammar :
Field | * | * | * | * | * |
---|---|---|---|---|---|
meaning | minute | Hours | date | month | week |
Value range | 0-59 | 0-23 | 1-31 | 1-12 | 0-7 |
The rules | |||||
Specify a time frame | a-b | ||||
Specify the time interval | / | ||||
Specify the variable value | a,b,c |
Example :
1. every other 15 Once per minute
```
H/15 * * * *
```
2. every other 2 Once an hour
```
H H/2 * * *
```
3. every other 3 Once a day
```
H H H/3 * *
```
4. every other 3 Once a day ( Monthly 1-15 Number )
```
H H 1-15/3 * *
```
5. Once a week 1,3,5 Do it once
```
H H * * 1,3,5
```
1.
边栏推荐
- 【毕业季|进击的技术er】又到一年毕业季,一毕业就转行,从动物科学到程序员,10年程序员有话说
- Arbre DP acwing 285. Un bal sans patron.
- Recommend a low code open source project of yyds
- Problems in the implementation of lenet
- The method of replacing the newline character '\n' of a file with a space in the shell
- Facial expression recognition based on pytorch convolution -- graduation project
- On a un nom en commun, maître XX.
- Using DLV to analyze the high CPU consumption of golang process
- Digital statistics DP acwing 338 Counting problem
- 剑指 Offer II 029. 排序的循环链表
猜你喜欢
LeetCode 324. Swing sort II
精彩回顾|I/O Extended 2022 活动干货分享
2022-2-13 learn the imitation Niuke project - Project debugging skills
LeetCode 513. Find the value in the lower left corner of the tree
AcWing 786. 第k个数
Binary tree traversal (first order traversal. Output results according to first order, middle order, and last order)
Common penetration test range
樹形DP AcWing 285. 沒有上司的舞會
即时通讯IM,是时代进步的逆流?看看JNPF怎么说
拯救剧荒,程序员最爱看的高分美剧TOP10
随机推荐
AcWing 786. 第k个数
数位统计DP AcWing 338. 计数问题
求组合数 AcWing 885. 求组合数 I
String splicing method in shell
The "booster" of traditional office mode, Building OA office system, was so simple!
Low code momentum, this information management system development artifact, you deserve it!
excel一小时不如JNPF表单3分钟,这样做报表,领导都得点赞!
Problems in the implementation of lenet
LeetCode 57. 插入区间
AcWing 785. Quick sort (template)
2022-2-13 learning the imitation Niuke project - home page of the development community
Vs2019 configuration opencv3 detailed graphic tutorial and implementation of test code
LeetCode 30. Concatenate substrings of all words
树形DP AcWing 285. 没有上司的舞会
In the digital transformation, what problems will occur in enterprise equipment management? Jnpf may be the "optimal solution"
On February 14, 2022, learn the imitation Niuke project - develop the registration function
Divide candy (circular queue)
Format - C language project sub file
剑指 Offer II 091. 粉刷房子
LeetCode 535. Encryption and decryption of tinyurl