Jenkins, 通用配置

1. 通用配置项

  • Discard old builds
  • This build requires lockable resources
  • This project is parameterized
  • Throttle builds
  • Disable this project
  • Execute concurrent builds if necessary

image.png

2. Discard old builds

通过时间/次数来清理历史构造数据, 减少磁盘占用

This determines when, if ever, build records for this project should be discarded. Build records include the console output, archived artifacts, and any other metadata related to a particular build.
Keeping fewer builds means less disk space will be used in the Build Record Root Directory, which is specified on the Configure System screen.

Jenkins offers two options for determining when builds should be discarded:

  • Build age: discard builds when they reach a certain age; for example, seven days old.
  • Build count: discard the oldest build when a certain number of builds already exist.

image.png

3. This build requires lockable resources

构建之间增加锁机制

4. This project is parameterized

工程添加自定义参数, 支持多种类型: boolean, Choice, File, Password, Text, String等
image.png

5. Throttle builds

限制工程构造频率, 如每分钟仅构建1次
image.png

6. Disable this project

使工程失效, 调试时可以使用

When this option is checked, no new builds of this project will be executed.
This can be helpful when you want to temporarily prevent a project from being built.

7. Execute concurrent builds if necessary

默认情况下, 工程在某个时刻只能执行1个构建
勾选后, 支持并行构建

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值