formula based parameters

Can I do formulas on parameters? For instance i have a parameter that takes last build time + 10? Or a parameter that is %env.buildtimeout% + 10?

Thanks

2 comments
Comment actions Permalink

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.

0
Comment actions Permalink

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.

0

Please sign in to leave a comment.