Use Ubuntu instead of macOS pool for evaluate-paths-job.yml (#56479)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Thu, 29 Jul 2021 07:57:55 +0000 (09:57 +0200)
committerGitHub <noreply@github.com>
Thu, 29 Jul 2021 07:57:55 +0000 (09:57 +0200)
The script can run on Ubuntu as well so we can take some work off of the congested macOS pool.

Also set a fetch depth of 2 since that's all we need to calculate the changed paths, this shaves ~40 seconds off that step.

eng/pipelines/common/evaluate-paths-job.yml

index 58f0e96..309ab4b 100644 (file)
@@ -29,12 +29,12 @@ jobs:
   - job: evaluate_paths
     displayName: Evaluate Paths
     pool:
-      vmImage: 'macOS-10.14'
+      vmImage: 'ubuntu-latest'
 
     steps:
     - checkout: self
       clean: true
-      fetchDepth: $(checkoutFetchDepth)
+      fetchDepth: 2
 
     - ${{ if ne(parameters.paths[0], '') }}:
       - ${{ each path in parameters.paths }}: