I am looking for a way to fail a build if it will take more than X time (be it absolute (5 minutes -- example) or relative (10% more than the average of the last 5 builds -- example).
Is there any plugin to do that or should I build such functionality onto my running scripts?
I've been searching for plugins but couldn't find one that will mark a build as fail, only report build times.