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

Co-authored-by: Wei Hu <huwe@microsoft.com>
This commit is contained in:
Azure SDK Bot 2024-11-13 10:29:59 -08:00 коммит произвёл GitHub
Родитель c8d6644af6
Коммит 8a083b8594
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 10 добавлений и 1 удалений

Просмотреть файл

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