如何设置适用于管道中所有作业/步骤的变量或配置?我正在使用自动 Devops。
目前,我使用如下,但我想将重试配置应用于管道中的所有作业,而不是为每个作业指定它,如下所示。有没有办法做到这一点 ?
build:
retry:
max: 2
when:
- runner_system_failure
- stuck_or_timeout_failure
- scheduler_failure
- stale_schedule
- unknown_failure
review:
retry:
max: 2
when:
- runner_system_failure
- stuck_or_timeout_failure
- scheduler_failure
- stale_schedule
- unknown_failure