jenkins - 我们可以在 Jenkins 作业中将构建时间作为参数传递吗?
问题描述
我在 jenkins 有一份工作,它会触发其他管道。有什么方法可以作为参数传递作业必须运行某个管道的时间?
解决方案
根据文档,quietPeriod
您可能想要探索一些参数。
* quietPeriod (optional)
Optional alternate quiet period (in seconds) before building. If unset, defaults
to the quiet period defined by the downstream project (or finally to the system-
wide default quiet period).
Type: int
您需要计算“现在”和您希望作业运行之间的秒数。
推荐阅读
- r - R:新变量,其值来自另一个变量,基于第三个变量中的最小值,按 ID 分组
- ruby - cron 作业在 shell 脚本中的 ruby 问题
- php - 将 Contact form 7 变量传递到屏幕
- java - 有没有办法旋转由像素值的二维数组表示的图像?
- c - 如何使用特定于级别的宏获取自定义日志记录功能以处理格式化打印
- javascript - 如何在javascript中添加图像我一直试图通过这个api获取它
- reactjs - CORS 缺少允许带有 login_required Django 的来源
- stata - 在不破坏数据的情况下在 Stata 中重新编码分类变量的级别
- c# - 根据添加到 ApplicationUser 的 Locked 属性授权对控制器的访问
- dns - Okhttp dns 缓存失效