Azure devops Azure管道任务超时不受尊重

Azure devops Azure管道任务超时不受尊重,azure-devops,azure-pipelines,Azure Devops,Azure Pipelines,我正在运行一个azure管道,如下所示。我在3个位置设置了超时(以分钟为单位):作业、池和任务,但是步骤运行验收测试总是在60分钟后超时,并显示错误消息: 设置资源时出错(错误类型:超时)。 手术被取消了 否则,管道中的所有内容都正常运行 stages: - stage: Run_Acceptance_Tests jobs: - job: Run_Acceptance_Tests timeoutInMinutes: 180 pool: name: Hoste

我正在运行一个azure管道,如下所示。我在3个位置设置了超时(以分钟为单位):作业、池和任务,但是步骤运行验收测试总是在60分钟后超时,并显示错误消息:

设置资源时出错(错误类型:超时)。 手术被取消了

否则,管道中的所有内容都正常运行

stages: 
- stage: Run_Acceptance_Tests
  jobs:
  - job: Run_Acceptance_Tests
    timeoutInMinutes: 180
    pool:
      name: Hosted VS2017
      timeoutInMinutes: 180
      demands:
      - msbuild
      - visualstudio
      - vstest

    steps:
    - task: NuGetToolInstaller@0
      displayName: 'Use NuGet 4.4.1'
      inputs:
        versionSpec: 4.4.1

    - task: NuGetCommand@2
      displayName: 'NuGet restore'
      inputs:
        restoreSolution: '$(solution)'

    - task: VSBuild@1
      displayName: 'Build solution'
      inputs:
        solution: '$(solution)'
        msbuildArgs: '/p:SkipInvalidConfigurations=true /p:ExcludeApp_Data=true /p:AutoParameterizationWebConfigConnectionStrings=false /p:MarkWebConfigAssistFilesAsExclude=false /p:ProfileTransformWebConfigEnabled=false /p:TransformWebConfigEnabled=false'
        platform: '$(BuildPlatform)'
        configuration: '$(BuildConfiguration)'

    - task: FileTransform@2
      displayName: 'Transform settings for Acceptance tests'
      inputs:
        folderPath: '$(Build.SourcesDirectory)'
        xmlTransformationRules: '-transform **\Selenium.Tests\App.Test.config -xml **\Selenium.Tests\bin\**\Selenium.Tests.dll.config'    

    - task: VSTest@2
      displayName: 'Run ExcelWraps Acceptance tests'
      timeoutInMinutes: 180
      inputs:
        testAssemblyVer2: |
         **\Selenium.Tests.dll
         !**\obj\**
        searchFolder: '$(Build.SourcesDirectory)'
        pathtoCustomTestAdapters: '$(build.sourcesdirectory)\src\packages\NUnit3TestAdapter.3.10.0\build\net35\'
        runInParallel: false
        codeCoverageEnabled: false
        platform: '$(BuildPlatform)'
        configuration: '$(BuildConfiguration)'
        diagnosticsEnabled: false
        uiTests: true
        minimumExpectedTests: 10    
我反复阅读了这些文件,似乎已经完成了他们要求的一切。 所有这些问题似乎都通过将超时放置在我上面提到的位置之一得到了回答: - - - - -


如何增加测试步骤的超时时间?

在私人项目中,Microsoft在托管代理中提供的最大超时时间为60分钟

见文件:

避免在工作挂起或等待时占用资源 long,对你的工作时间设定一个限制是个好主意 跑。使用作业超时设置以分钟为单位指定限制 为了运行作业。将该值设置为零意味着作业可以 运行:

  • 永远依靠自托管代理
  • 在具有公共项目和公共存储库的Microsoft托管代理上运行360分钟(6小时)
  • 在Microsoft托管的代理上使用私人项目或 专用存储库

您的项目是私有的还是公共的?项目是私有的,这就是原因,请参见我的答案:)您最多可以访问60分钟,在您的情况下(私有项目+托管代理)最多可以访问60分钟。文档说,对于指定为0的值,超时为60分钟。它没有说允许的最大时间是60分钟。我想你说的是对的,最多允许60人。只是说医生没有这么说。