Hi Graham,

I have no ide … but why not test it?

It’s quite straightforward:

 

Retry(1) {

   Error(“This will fail … but how many times you will see this text?”)

}

 

Cheers,

Gianluca.

 

 

From: [email protected] <[email protected]> On 
Behalf Of Graham Hay
Sent: 08 February 2021 12:50
To: Jenkins Users <[email protected]>
Subject: Pipeline retry step

 

https://www.jenkins.io/doc/pipeline/steps/workflow-basic-steps/#retry-retry-the-body-up-to-n-times

Can someone clarify for me what retry(1) will do? Will that run the step twice, 
if it fails? Or does the count include the original attempt? (I tried to find 
the source code, but didn't even know where to start).

 

Thanks,

 

Graham

-- 
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 [email protected] 
<mailto:[email protected]> .
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4f974b15-a376-47ff-b6ea-199715275225n%40googlegroups.com
 
<https://groups.google.com/d/msgid/jenkinsci-users/4f974b15-a376-47ff-b6ea-199715275225n%40googlegroups.com?utm_medium=email&utm_source=footer>
 .

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/00c401d6fe25%249371c480%24ba554d80%24%40gmail.com.

Reply via email to