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?
Fortunately, the most common reasons your Jenkins instance is slow are easy to diagnose and correct: Non-performant plugins. Poorly tuned JVM arguments. Non-optimal garbage collection.
Go to Manage Jenkins and then Configure System . Under the item Global Build Time Out you can activate a global timeout which will be applied to any job. Choose your timeout strategy, the duration and add actions which should be executed at timeout.
Its default time is 10 minutes.
To manually prevent a build from getting purged according to the schedule, click on the 'Keep this build forever' button to lock the build.
Build-timeout plugin has multiple options (taken from help documentation of Build Timeout Plugin)
- Absolute time. Use this if you know exactly how much time your build should not exceed in advance
- Elastic time. Use this option if you want Jenkins to decide on the time. It basically averages out on the last n builds and will stop a build if it exceeds given percentage. If you do not know in advance how much time your build takes, use this option
- Likely Stuck. Use Jenkins' Executor.html#isLikelyStuck() heuristics based approach to detect build is suspiciously taking for a long time
In your case, option two seems to be best initially.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With