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

白昼怎懂夜的黑 提交于 2019-12-11 08:35:13

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/50732653/when-executing-jobs-in-jenkins-pipeline-and-a-job-is-failed-at-night-how-do-you

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!