5

I would like to take advantage of this plug-in but the 'Abort the build if it's stuck' option doesn't set any timer and the description of the plug-in doesn't say how long is the timer, it just says: 'This plugin allows you to automatically abort a build if it's taking too long'

My question is how long is that? 1 hour, less/more?
Can I set up my own time? Is that timer for the overall job or every line in the batch file has that timer?

4

3 回答 3

11

Build-timeout 插件有多个选项(取自Build Timeout Plugin的帮助文档)

  • 绝对时间。如果您确切知道您的构建不应提前多长时间,请使用此选项
  • 弹性时间。如果您希望 Jenkins 决定时间,请使用此选项。它基本上是最后 n 次构建的平均值,如果超过给定百分比,它将停止构建。如果您事先不知道构建需要多少时间,请使用此选项
  • 可能卡住了。使用 Jenkins 的 Executor.html#isLikelyStuck() 启发式方法来检测构建可疑地花费了很长时间

在您的情况下,选项二似乎最初是最好的。

于 2013-10-13T05:28:32.737 回答
2

我最近将我的 jenkins 安装升级到 1532,并在工作中注意到设置时间的收音机不见了。我可能会将其归档为错误。

这就是你的工作应该是这样的:

https://github.com/jenkinsci/build-timeout-plugin/pull/14#issuecomment-24114825

于 2013-10-11T19:14:12.790 回答
2

我刚刚升级到 Jenkins 1535,并且可以使用新的插件升级。那次升级解决了我遇到的问题。超时时间现在可用。

于 2013-10-16T10:30:48.117 回答