Jenkins的构建步骤超时 [英] Timeout on a Build Step of Jenkins

查看:1338
本文介绍了Jenkins的构建步骤超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Jenkins中,有没有一种方法可以为每个或选定的构建步骤提供不同的超时时间?

构建时插件输出可以使超时功能在整个项目中终止构建,如果它被卡住了,那是什么?我需要为每个步骤指定不同的超时时间。通过这种方式,我可以使我的过程更高效。

In Jenkins, is there a way to give different timeouts to each or selected build step?
Build-time plugin out gives functionality of timeout "Abort the build if it's stuck" on complete project, what I need is to give different timeouts for each step. This way I can make my process more efficient.

推荐答案

从Jenkins的当前版本开始,可以做到这一点。点击'Configure',然后选择'Build Environment'选项卡,然后设置您的超时时间。

As of current versions of Jenkins, this can be done. Hit 'Configure', then select the 'Build Environment' tab, and then set your timeout.

这是屏幕截图:

Here's an screenshot:

这篇关于Jenkins的构建步骤超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆