I am looking to have a build failed if the last build exceeded a certain amount of time and i want that amount of time to be a dynamic number based on my custom formula. I also want to restrict access to this formula so only admin people can change the formula.
neither formulas on parameters nor parameters in build failure conditions are supported at the moment.
A possible workaround is to write a plugin which defines a build metric with your custom formula and add a failure condition on change of this metric. You can find an example of such metic here https://github.com/nd/failure.formula. Hope it helps.
I am looking to have a build failed if the last build exceeded a certain amount of time and i want that amount of time to be a dynamic number based on my custom formula. I also want to restrict access to this formula so only admin people can change the formula.
Hi Richard,
neither formulas on parameters nor parameters in build failure conditions are supported at the moment.
A possible workaround is to write a plugin which defines a build metric with your custom formula and add a failure condition on change of this metric. You can find an example of such metic here https://github.com/nd/failure.formula. Hope it helps.