Sync eng/common directory with azure-sdk-tools for PR 11373 (#6677)

* Use full checkout for regen stage

* remove fetchdepth

* update both

* checkout branch

* switch

* Fetch branch

* origin

* azure-sdk

---------

Co-authored-by: jolov <jolov@microsoft.com>
This commit is contained in:
Azure SDK Bot 2025-07-29 13:04:04 -07:00 committed by GitHub
parent 05c6f48fd3
commit dd66f84f17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -248,11 +248,7 @@ extends:
jobs:
- job: Initialize
steps:
- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
parameters:
Paths:
- "/*"
- "!SessionRecords"
- checkout: self
- task: UseNode@1
displayName: 'Install Node.js'
@ -325,15 +321,12 @@ extends:
matrixArtifactsPath: $(Pipeline.Workspace)/matrix_artifacts
AzureSdkRepoName: $[format('azure-sdk/{0}', split(variables['Build.Repository.Name'], '/')[1])]
steps:
- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
parameters:
Paths:
- "/*"
- "!SessionRecords"
Repositories:
- Name: $(AzureSdkRepoName)
Commitish: $(branchName)
WorkingDirectory: $(System.DefaultWorkingDirectory)
- checkout: self
- pwsh: |
git remote add azure-sdk https://github.com/$(AzureSdkRepoName).git
git fetch azure-sdk $(branchName)
git switch $(branchName)
displayName: 'Checkout PR branch $(branchName)'
- task: UseNode@1
displayName: 'Install Node.js'