Skip to content

Commit cd4caeb

Browse files
azure-sdklive1206
andauthored
Add SparseCheckoutPaths to archetype-typespec-emitter.yml (#42920)
Co-authored-by: Wei Hu <huwe@microsoft.com>
1 parent 87a4900 commit cd4caeb

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

eng/common/pipelines/templates/archetype-typespec-emitter.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ parameters:
6262
type: boolean
6363
default: false
6464

65+
# Paths to sparse checkout
66+
- name: SparseCheckoutPaths
67+
type: object
68+
default: []
69+
6570
extends:
6671
template: /eng/pipelines/templates/stages/1es-redirect.yml
6772
parameters:
@@ -79,6 +84,8 @@ extends:
7984
- job: Build
8085
steps:
8186
- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
87+
parameters:
88+
Paths: ${{ parameters.SparseCheckoutPaths }}
8289

8390
- ${{ parameters.InitializationSteps }}
8491

@@ -411,7 +418,9 @@ extends:
411418
buildArtifactsPath: $(Pipeline.Workspace)/build_artifacts
412419
steps:
413420
- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
414-
421+
parameters:
422+
Paths: ${{ parameters.SparseCheckoutPaths }}
423+
415424
- download: current
416425
artifact: build_artifacts
417426
displayName: Download build artifacts

0 commit comments

Comments
 (0)