Make configurable the system maximum for job retries

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Release notes

Problem to solve

Currently there is a maximum limit of 2 when configuring a job to retry automatically. For self-managed customers, it would be useful to make this a configurable application limit.

Proposal

Allow self-managed customers to modify the maximum value accepted for retry:max syntax when defining number to automatic retries of a failed job.

Note: Current max was implemented in gitlab-foss!12909 (merged).

Edited by 🤖 GitLab Bot 🤖