re-run build step if failed

19 views
Skip to first unread message

Shurik

unread,
Mar 26, 2015, 8:53:34 AM3/26/15
to jenkins...@googlegroups.com
Hi,

I have the job that has shell build step.

I want to re-run this build step if it failed on the first time.

I need to configure it on the same job ( I can't define other job for it or use the naginator plugin - project restriction )

How can I configure it?

Thanks,
Shurik

Eric Pyle

unread,
Mar 27, 2015, 9:46:43 AM3/27/15
to jenkins...@googlegroups.com
You would need to configure the retry completely within the build step then, using a bash script or something similar. You would perform the build step, perhaps in a separate script, and check the status when it returns. If it failed, you could perform cleanup if needed and retry.

Eric
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c9c2d3d6-0656-482a-9f8a-b591d326b002%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages