Skip to content

Commit 217b8a8

Browse files
authored
Add sparse checkout on build docs and build extended jobs to align with build and test (#46699)
1 parent f260d50 commit 217b8a8

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

  • eng/pipelines/templates/jobs

eng/pipelines/templates/jobs/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,13 @@ jobs:
145145
os: linux
146146

147147
steps:
148+
- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
149+
parameters:
150+
${{ if endsWith(variables['Build.Repository.Name'], '-pr') }}:
151+
TokenToUseForAuth: $(azuresdk-github-pat)
152+
Paths:
153+
- '**'
154+
148155
- template: /eng/pipelines/templates/steps/download-package-artifacts.yml
149156

150157
- template: /eng/pipelines/templates/steps/resolve-package-targeting.yml
@@ -177,6 +184,13 @@ jobs:
177184
os: linux
178185

179186
steps:
187+
- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
188+
parameters:
189+
${{ if endsWith(variables['Build.Repository.Name'], '-pr') }}:
190+
TokenToUseForAuth: $(azuresdk-github-pat)
191+
Paths:
192+
- '**'
193+
180194
- template: /eng/pipelines/templates/steps/download-package-artifacts.yml
181195

182196
- template: /eng/pipelines/templates/steps/resolve-package-targeting.yml

0 commit comments

Comments
 (0)