Quantcast

Can I restart a job automatically if it fails ?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Can I restart a job automatically if it fails ?

sbrown48
Can I restart a job automatically if it fails ?

I am running a java program against a site out of my control.
I have a timeout in there to fail if it takes too long.
If it fails I want to restart the job x number of times.

Is this possible?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Can I restart a job automatically if it fails ?

Rob Petti-2
Yep:
https://wiki.jenkins-ci.org/display/JENKINS/Retry+Failed+Builds+Plugin

On Monday, 15 October 2012 14:32:15 UTC-6, sbrown48 wrote:
Can I restart a job automatically if it fails ?

I am running a java program against a site out of my control.
I have a timeout in there to fail if it takes too long.
If it fails I want to restart the job x number of times.

Is this possible?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Can I restart a job automatically if it fails ?

Marek Gimza
In reply to this post by sbrown48
Steve,

Yes this is possible.

The plugin you want is :
Centralized configuration to restart jobs when a pattern occurs in the job console output.

It may not be ideal, but definitely helps!


...
Mgimza

On Mon, Oct 15, 2012 at 4:32 PM, sbrown48 <[hidden email]> wrote:
Can I restart a job automatically if it fails ?

I am running a java program against a site out of my control.
I have a timeout in there to fail if it takes too long.
If it fails I want to restart the job x number of times.

Is this possible?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Can I restart a job automatically if it fails ?

vf-2
In reply to this post by sbrown48
https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin



sbrown48 <[hidden email]> schrieb:
Can I restart a job automatically if it fails ?

I am running a java program against a site out of my control.
I have a timeout in there to fail if it takes too long.
If it fails I want to restart the job x number of times.

Is this possible?

--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
Loading...