From 3c0b0b5057c5bf0aa6ca92603e12ff85e4cb8b07 Mon Sep 17 00:00:00 2001 From: Sven Boemer Date: Tue, 18 Dec 2018 21:09:58 -0800 Subject: [PATCH] Add build timeout (dotnet/coreclr#21591) This should fix official build failures that are timing out because the jobs are waiting to obtain an exclusive lock on the blob feed. Commit migrated from https://github.com/dotnet/coreclr/commit/c0c51f83e56eb37bb5a257c0e82ca6676894d6c1 --- eng/build-job.yml | 4 ++++ eng/pipelines/coreclr/azure-pipelines.yml | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/eng/build-job.yml b/eng/build-job.yml index 064db09..24c7de8 100644 --- a/eng/build-job.yml +++ b/eng/build-job.yml @@ -5,6 +5,7 @@ parameters: osIdentifier: '' containerName: '' crossrootfsDir: '' + timeoutInMinutes: '' ### Product build jobs: @@ -23,6 +24,9 @@ jobs: # Run all steps in the container. # Note that the containers are resources defined in azure-pipelines.yml containerName: ${{ parameters.containerName }} + + timeoutInMinutes: ${{ parameters.timeoutInMinutes }} + crossrootfsDir: ${{ parameters.crossrootfsDir }} gatherAssetManifests: true diff --git a/eng/pipelines/coreclr/azure-pipelines.yml b/eng/pipelines/coreclr/azure-pipelines.yml index 0aba334..a0ab3eb 100644 --- a/eng/pipelines/coreclr/azure-pipelines.yml +++ b/eng/pipelines/coreclr/azure-pipelines.yml @@ -110,6 +110,11 @@ jobs: parameters: jobTemplate: build-job.yml buildConfig: release + jobParameters: + # Publishing packages to blob feeds sometimes takes a long time + # due to waiting for an exclusive lock on the feed. + # See https://github.com/dotnet/arcade/blob/master/Documentation/CorePackages/AsyncPublishing.md + timeoutInMinutes: 120 # # Checked test builds -- 2.7.4