Global Retry Settings

Given some ephemeral and “dynamic” environments (kubernetes, spot instances, etc) sometimes a job may fail due to agent lost, which in most cases we wish to retry.
It would great to have a global/pipeline level setting (maybe with env vars we can set on the agent as default) for automatically retying this cases as otherwise we need to past this setting to every step.