Skip to content

Commit 1827c76

Browse files
Sync eng/common directory with azure-sdk-tools for PR 11373 (#25019)
* 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>
1 parent 3de4755 commit 1827c76

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

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

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,7 @@ extends:
248248
jobs:
249249
- job: Initialize
250250
steps:
251-
- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
252-
parameters:
253-
Paths:
254-
- "/*"
255-
- "!SessionRecords"
251+
- checkout: self
256252

257253
- task: UseNode@1
258254
displayName: 'Install Node.js'
@@ -325,15 +321,12 @@ extends:
325321
matrixArtifactsPath: $(Pipeline.Workspace)/matrix_artifacts
326322
AzureSdkRepoName: $[format('azure-sdk/{0}', split(variables['Build.Repository.Name'], '/')[1])]
327323
steps:
328-
- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
329-
parameters:
330-
Paths:
331-
- "/*"
332-
- "!SessionRecords"
333-
Repositories:
334-
- Name: $(AzureSdkRepoName)
335-
Commitish: $(branchName)
336-
WorkingDirectory: $(System.DefaultWorkingDirectory)
324+
- checkout: self
325+
- pwsh: |
326+
git remote add azure-sdk https://github.com/$(AzureSdkRepoName).git
327+
git fetch azure-sdk $(branchName)
328+
git switch $(branchName)
329+
displayName: 'Checkout PR branch $(branchName)'
337330
338331
- task: UseNode@1
339332
displayName: 'Install Node.js'

0 commit comments

Comments
 (0)