Add build timeout (dotnet/coreclr#21591)
authorSven Boemer <sbomer@gmail.com>
Wed, 19 Dec 2018 05:09:58 +0000 (21:09 -0800)
committerGitHub <noreply@github.com>
Wed, 19 Dec 2018 05:09:58 +0000 (21:09 -0800)
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
eng/pipelines/coreclr/azure-pipelines.yml

index 064db09..24c7de8 100644 (file)
@@ -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
index 0aba334..a0ab3eb 100644 (file)
@@ -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