azure-devops - azure devops 构建管道将超时减少到 30 分钟

标签 azure-devops timeout azure-pipelines build-pipeline

有没有办法更改构建管道的超时时间,目前管道时间在 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/

相关文章:

java - 诊断间歇性连接超时?

azure-devops - VSTS 扩展构建摘要部分

visual-studio - Visual Studio Online 是 PaaS 吗?

azure - MSDeploy 到 Azure Web 应用程序 : Could not connect to the remote computer using the specified process ("Web Management Service")

Azure 应用程序见解显示 Node js 应用程序的重复日志条目

c# - .NET 4.0 Entity Framework 超时已过期

android - Cordova build android error : Could not resolve com. github.scottyab :rootbeer:0. 0.7 on vs 2017 azure devops agent

cmake - 如何覆盖 CMakeLists.txt 中的 Ctest 默认超时 1500

Azure 上的 iOS build设置失败并出现文件存在错误

kubernetes - 如何在 Azure 管道 (VSTS) 中使用 Deploy to Kubernetes 任务的输出变量