File tree Expand file tree Collapse file tree 4 files changed +15
-0
lines changed
Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,8 @@ stages:
9898 jobName : Code_check
9999 jobDisplayName : Code check
100100 agentOs : Windows
101+ # Need full history for git log comparison in CodeCheck.ps1
102+ fetchDepth : 0
101103 steps :
102104 - powershell : ./eng/scripts/CodeCheck.ps1 -ci $(_InternalRuntimeDownloadArgs)
103105 displayName : Run eng/scripts/CodeCheck.ps1
Original file line number Diff line number Diff line change @@ -111,6 +111,8 @@ extends:
111111 jobName : Code_check
112112 jobDisplayName : Code check
113113 agentOs : Windows
114+ # Need full history for git log comparison in CodeCheck.ps1
115+ fetchDepth : 0
114116 beforeBuild :
115117 - script : git submodule update --init
116118 displayName : Update submodules
Original file line number Diff line number Diff line change @@ -138,6 +138,8 @@ extends:
138138 jobName : Code_check
139139 jobDisplayName : Code check
140140 agentOs : Windows
141+ # Need full history for git log comparison in CodeCheck.ps1
142+ fetchDepth : 0
141143 steps :
142144 - powershell : ./eng/scripts/CodeCheck.ps1 -ci $(_InternalRuntimeDownloadArgs)
143145 displayName : Run eng/scripts/CodeCheck.ps1
Original file line number Diff line number Diff line change @@ -71,6 +71,9 @@ parameters:
7171 timeoutInMinutes : 180
7272 testRunTitle : $(AgentOsName)-$(BuildConfiguration)
7373 useHostedUbuntu : true
74+ # Checkout optimization parameters
75+ fetchDepth : 1
76+ fetchTags : false
7477
7578 # 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).
7679 # This makes sure we have time to upload everything in the case of a build timeout - really important for investigating a build
@@ -159,6 +162,9 @@ jobs:
159162 - name : ${{ pair.key }}
160163 value : ${{ pair.value }}
161164 steps :
165+ - checkout : self
166+ fetchDepth : ${{ parameters.fetchDepth }}
167+ fetchTags : ${{ parameters.fetchTags }}
162168 - ${{ if ne(parameters.agentOs, 'Windows') }} :
163169 - script : df -h
164170 displayName : Disk size
@@ -385,6 +391,9 @@ jobs:
385391 - name : ${{ pair.key }}
386392 value : ${{ pair.value }}
387393 steps :
394+ - checkout : self
395+ fetchDepth : ${{ parameters.fetchDepth }}
396+ fetchTags : ${{ parameters.fetchTags }}
388397 - ${{ if ne(parameters.agentOs, 'Windows') }} :
389398 - script : df -h
390399 displayName : Disk size
You can’t perform that action at this time.
0 commit comments