当前位置:网站首页>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.
边栏推荐
- 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
- [point cloud processing paper crazy reading classic version 9] - pointwise revolutionary neural networks
- Digital statistics DP acwing 338 Counting problem
- AcWing 788. 逆序对的数量
- Method of intercepting string in shell
- How to check whether the disk is in guid format (GPT) or MBR format? Judge whether UEFI mode starts or legacy mode starts?
- 传统办公模式的“助推器”,搭建OA办公系统,原来就这么简单!
- LeetCode 241. Design priorities for operational expressions
- LeetCode 508. 出现次数最多的子树元素和
猜你喜欢

AcWing 787. Merge sort (template)
【毕业季|进击的技术er】又到一年毕业季,一毕业就转行,从动物科学到程序员,10年程序员有话说

Binary tree sorting (C language, int type)

Basic knowledge of network security

Sword finger offer II 091 Paint the house

精彩回顾|I/O Extended 2022 活动干货分享

Pic16f648a-e/ss PIC16 8-bit microcontroller, 7KB (4kx14)

LeetCode 1089. 复写零

樹形DP AcWing 285. 沒有上司的舞會

2022-2-14 learning the imitation Niuke project - send email
随机推荐
How to check whether the disk is in guid format (GPT) or MBR format? Judge whether UEFI mode starts or legacy mode starts?
Too many open files solution
What are the stages of traditional enterprise digital transformation?
LeetCode 532. 数组中的 k-diff 数对
Divide candy (circular queue)
Save the drama shortage, programmers' favorite high-score American drama TOP10
Format - C language project sub file
记忆化搜索 AcWing 901. 滑雪
LeetCode 1089. 复写零
Using DLV to analyze the high CPU consumption of golang process
LeetCode 715. Range 模块
On the setting of global variable position in C language
20220630学习打卡
Install third-party libraries such as Jieba under Anaconda pytorch
Memory search acwing 901 skiing
State compression DP acwing 91 Shortest Hamilton path
Move anaconda, pycharm and jupyter notebook to mobile hard disk
Instant messaging IM is the countercurrent of the progress of the times? See what jnpf says
数字化管理中台+低代码,JNPF开启企业数字化转型的新引擎
dried food! What problems will the intelligent management of retail industry encounter? It is enough to understand this article