Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何每分钟运行一次在 Jenkins 中创建的作业?我错过了什么吗?
PS:我尽量不使用:*/1 * * * *
试着* * * * *每分钟跑一次。
* * * * *
不幸的是H/1 * * * *,由于开放缺陷而无法正常工作。
H/1 * * * *
缺陷:https ://issues.jenkins-ci.org/browse/JENKINS-22129
你的直觉是对的,H/1应该表现得像“每分钟都跑”。
H/1
但是,Jenkins 中有一个众所周知的错误。请参阅JENKINS-22129。
目前,H/1行为类似于“每小时运行一次”。
使用这种格式,它将每隔一分钟运行一次 Jenkins 作业“* * * * *”
要每分钟运行一次构建过程,请检查“定期构建”选项并添加* * * * *