[builder] make retries configurable

Hello!

I've added the configuration attribute 'build_retries' which allows a user to set a global number of retries.

I tend to rather that my builds don't retry and thus have mine set to  nil or zero.

Cheers

AJ