custom build failure condition

How can I write a plugin that creates a global build failure condtion that will apply to every build/project? I want the condition to be a formula based on last successful build duration combined with a system parameter which will result in a number representing seconds that will be used by a build to stop the build if the build goes longer than the calculated number of seconds.

1 comment
Comment actions Permalink

Take a look at https://github.com/nd/kill-billd, it stops the build if it runs for too long comparing to last successful build.

0

Please sign in to leave a comment.