Yes and no. No, nothing specific to pipeline springs to my mind for this.
But yes, is very easy to use system Groovy script to, for instance, find
the recent builds that failed in less than 5 seconds.

Something like (untested, on the phone):

Jenkins.instance.allItems
.findAll { it instanceof SomeProject, filter what you want }
.collect { it.builds }
.flatten()
.findAll { it.state = failed && it.duration < 5000 }
.each { println it.job.name }

Beware that the code above is totally untested and partly pseudo code, so
you need to complete it.

Sure ask again if you can't get it finished.

Cheers

Le 25 août 2017 09:29, "red 888" <[email protected]> a écrit :

> I have my repo getting polled every 5 mins.
>
> But I found that if the jenkinsfile is totally broken the pipeline will
> fail with "This stage has no steps".
>
> Then every 5 mins it will retry it and keep failing.
>
> How do I safe guard against this? Can I set a threshold somewhere so if
> this happens it doesn't churn forever?
>
> --
> 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/3d788f3a-2764-4756-9b66-e22c600e2029%40googlegroups.
> com
> <https://groups.google.com/d/msgid/jenkinsci-users/3d788f3a-2764-4756-9b66-e22c600e2029%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CANWgJS4G%3D3zzoC0p0xsuQxpF86uyc%2B_jONN_Agea9HF0p5JD8g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to