Increase checkout fetchDepth to 5 (dotnet/coreclr#26774)
authorTomáš Rylek <trylek@microsoft.com>
Wed, 18 Sep 2019 21:52:17 +0000 (14:52 -0700)
committerGitHub <noreply@github.com>
Wed, 18 Sep 2019 21:52:17 +0000 (14:52 -0700)
Based on recommended practice and on Jared's experience from the
Roslyn repo I propose increasing the fetchDepth constant to 5 to
prevent occasional checkout failures seen after my change from
last week to only check out the GIT branch once for Windows
and once for Linux per pipeline.

This change is expected to fix the issue

https://github.com/dotnet/coreclr/issues/26733

Thanks

Tomas

Commit migrated from https://github.com/dotnet/coreclr/commit/85e7c7497edcf98b720ccd2a6090a0a5cc7fc490

eng/checkout-job.yml

index 6d0dffc..f737a44 100644 (file)
@@ -21,7 +21,7 @@ jobs:
   steps:
   - checkout: self
     clean: true
-    fetchDepth: 1
+    fetchDepth: 5
 
   ### Zip up downloaded repo and publish to Helix
   - template: /eng/upload-artifact-step.yml
@@ -50,7 +50,7 @@ jobs:
   steps:
   - checkout: self
     clean: true
-    fetchDepth: 1
+    fetchDepth: 5
 
   ### Zip up downloaded repo and publish to Helix
   - template: /eng/upload-artifact-step.yml