diff --git a/.azure/pipelines/ci-public.yml b/.azure/pipelines/ci-public.yml index 275bddb82851..9a278e2460f1 100644 --- a/.azure/pipelines/ci-public.yml +++ b/.azure/pipelines/ci-public.yml @@ -97,6 +97,8 @@ stages: jobName: Code_check jobDisplayName: Code check agentOs: Windows + # Need full history for git log comparison in CodeCheck.ps1 + fetchDepth: 0 steps: - powershell: ./eng/scripts/CodeCheck.ps1 -ci $(_InternalRuntimeDownloadArgs) displayName: Run eng/scripts/CodeCheck.ps1 diff --git a/.azure/pipelines/ci.yml b/.azure/pipelines/ci.yml index f922c40bd2ca..c67d1c5f08c4 100644 --- a/.azure/pipelines/ci.yml +++ b/.azure/pipelines/ci.yml @@ -162,6 +162,8 @@ extends: jobName: Code_check jobDisplayName: Code check agentOs: Windows + # Need full history for git log comparison in CodeCheck.ps1 + fetchDepth: 0 steps: - powershell: ./eng/scripts/CodeCheck.ps1 -ci $(_InternalRuntimeDownloadArgs) displayName: Run eng/scripts/CodeCheck.ps1 diff --git a/.azure/pipelines/jobs/default-build.yml b/.azure/pipelines/jobs/default-build.yml index 9588b1d6196c..2217c98cc2b8 100644 --- a/.azure/pipelines/jobs/default-build.yml +++ b/.azure/pipelines/jobs/default-build.yml @@ -71,6 +71,9 @@ parameters: timeoutInMinutes: 180 testRunTitle: $(AgentOsName)-$(BuildConfiguration) useHostedUbuntu: true + # Checkout optimization parameters + fetchDepth: 1 + fetchTags: false # We need longer than the default amount of 5 minutes to upload our logs/artifacts. (We currently take around 5 mins in the best case). # This makes sure we have time to upload everything in the case of a build timeout - really important for investigating a build @@ -168,6 +171,8 @@ jobs: displayName: Use XCode 16.4.0 - checkout: self clean: true + fetchDepth: ${{ parameters.fetchDepth }} + fetchTags: ${{ parameters.fetchTags }} - ${{ if and(eq(parameters.agentOs, 'Windows'), eq(parameters.isAzDOTestingJob, true)) }}: - powershell: ./eng/scripts/InstallProcDump.ps1 displayName: Install ProcDump @@ -395,6 +400,8 @@ jobs: displayName: Use XCode 16.4.0 - checkout: self clean: true + fetchDepth: ${{ parameters.fetchDepth }} + fetchTags: ${{ parameters.fetchTags }} - ${{ if and(eq(parameters.agentOs, 'Windows'), eq(parameters.isAzDOTestingJob, true)) }}: - powershell: ./eng/scripts/InstallProcDump.ps1 displayName: Install ProcDump