How to Restart a Failed Job?

22 views
Skip to first unread message

John Bobinyec

unread,
Nov 9, 2015, 6:20:06 PM11/9/15
to Jenkins Users
Consider a job which consists of many sequential steps.  When the processing in a particular step encounters an error, execution of the step and consequently the job, stops.  If the error condition can be corrected, what's the best way to resume/restart the job from the point of failure?  It is undesirable to start the job from scratch since it could have taken a considerable amount of time to get to the point of failure.

Thanks,
jb

Victor Martinez

unread,
Nov 9, 2015, 9:12:22 PM11/9/15
to Jenkins Users
Hi,

Afaik Jenkins jobs are atomic by default, you can split those sequential steps in a list of downstream jobs instead. If the UI is a bit cucumber some you can configure your jobs based on the configuration as code paradigm (JobDSL, Jenkins builder, Workflow...)

Jenkins workflow does provide a restore point feature, but I haven't used it yet so maybe someone else can provide further details.

There is a plugin to rerun a flacky job or something like that but probably that's not your case.

I hope it helps

Cheers

Reply all
Reply to author
Forward
0 new messages