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:
parent
05c6f48fd3
commit
dd66f84f17
@ -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'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user