Add SparseCheckoutPaths to archetype-typespec-emitter.yml (#6215)

Co-authored-by: Wei Hu <huwe@microsoft.com>
This commit is contained in:
Azure SDK Bot 2024-11-13 10:56:38 -08:00 committed by GitHub
parent 99d0d9faca
commit 90cfad26ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,6 +62,11 @@ parameters:
type: boolean
default: false
# Paths to sparse checkout
- name: SparseCheckoutPaths
type: object
default: []
extends:
template: /eng/pipelines/templates/stages/1es-redirect.yml
parameters:
@ -79,6 +84,8 @@ extends:
- job: Build
steps:
- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
parameters:
Paths: ${{ parameters.SparseCheckoutPaths }}
- ${{ parameters.InitializationSteps }}
@ -411,7 +418,9 @@ extends:
buildArtifactsPath: $(Pipeline.Workspace)/build_artifacts
steps:
- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
parameters:
Paths: ${{ parameters.SparseCheckoutPaths }}
- download: current
artifact: build_artifacts
displayName: Download build artifacts