有没有办法更改构建管道的超时时间,目前管道时间在 60 分钟后结束。我想减少到 30 分钟。
我查看了所有组织设置和项目设置,但在 UI 上找不到任何内容
或者它可以从 YAML 设置吗?
最佳答案
对于 YAML 管道,文档说您可以编写
jobs:
- job: Test
timeoutInMinutes: 10 # how long to run the job before automatically cancelling
cancelTimeoutInMinutes: 2 # how much time to give 'run always even if cancelled tasks' before stopping them
timeoutInMinutes: 0
也应该适用于单个任务,0 表示最大值(对于自托管代理是无限的)。
关于azure-devops - azure devops 构建管道将超时减少到 30 分钟,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56015919/