在Jenkins管道中执行作业时,如果某个作业在晚上失败了,您如何在同一晚恢复该作业? [英] When executing jobs in Jenkins pipeline and a job is failed at night how do you resume it in the same night?

查看:108
本文介绍了在Jenkins管道中执行作业时,如果某个作业在晚上失败了,您如何在同一晚恢复该作业?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Jenkins管道中执行硒作业时,如果某项工作在晚上失败了,您如何在当晚恢复呢?

When executing selenium jobs in Jenkins pipeline and a job is failed at night how do you resume it in the same night?

推荐答案

您可以使用 Naginator 插件可实现您的预​​期行为.对其进行如下配置:

You can use Naginator plugin to achieve your intended behavior. Configure it as follows:

安装插件->检查构建后操作"重试构建 失败后").

Install the plugin -> check the Post-Build action "Retry build after failure" on your project's configuration page.

如果构建失败,它将在您指定的时间后重新安排为再次运行.您可以选择重试运行作业的次数.对于每个连续的不成功构建,您可以选择延长等待时间.

If the build fails, it will be rescheduled to run again after the time you specified. You can choose how many times to retry running the job. For each consecutive unsuccessful build, you can choose to extend the waiting period.

这篇关于在Jenkins管道中执行作业时,如果某个作业在晚上失败了,您如何在同一晚恢复该作业?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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