зеркало из https://github.com/microsoft/cppwinrt.git
Update pool (#1374)
This commit is contained in:
Родитель
fc587f31f9
Коммит
2511bf7fcb
|
@ -11,44 +11,57 @@ parameters:
|
|||
type: string
|
||||
default: "https://github.com/microsoft/cppwinrt.git"
|
||||
|
||||
jobs:
|
||||
- job: SyncMirror
|
||||
strategy:
|
||||
matrix:
|
||||
${{ each branches in parameters.SourceToTargetBranches }}:
|
||||
${{ branches.key }}:
|
||||
SourceBranch: ${{ branches.key }}
|
||||
TargetBranch: ${{ branches.value }}
|
||||
dependsOn: []
|
||||
resources:
|
||||
repositories:
|
||||
- repository: 1ESPipelineTemplates
|
||||
type: git
|
||||
name: 1ESPipelineTemplates/1ESPipelineTemplates
|
||||
ref: refs/tags/release
|
||||
extends:
|
||||
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
|
||||
parameters:
|
||||
pool:
|
||||
name: Azure Pipelines
|
||||
vmImage: 'windows-2022'
|
||||
steps:
|
||||
- checkout: self
|
||||
persistCredentials: true
|
||||
name: Azure-Pipelines-1ESPT-ExDShared
|
||||
image: windows-2022
|
||||
os: windows
|
||||
customBuildTags:
|
||||
- ES365AIMigrationTooling
|
||||
stages:
|
||||
- stage: stage
|
||||
jobs:
|
||||
- job: SyncMirror
|
||||
strategy:
|
||||
matrix:
|
||||
${{ each branches in parameters.SourceToTargetBranches }}:
|
||||
${{ branches.key }}:
|
||||
SourceBranch: ${{ branches.key }}
|
||||
TargetBranch: ${{ branches.value }}
|
||||
dependsOn: []
|
||||
steps:
|
||||
- checkout: self
|
||||
persistCredentials: true
|
||||
|
||||
- task: PowerShell@2
|
||||
inputs:
|
||||
targetType: 'inline'
|
||||
script: |
|
||||
Write-Host "SourceBranch " + "$(SourceBranch)"
|
||||
Write-Host "TargetBranch " + "$(TargetBranch)"
|
||||
- task: PowerShell@2
|
||||
inputs:
|
||||
targetType: 'inline'
|
||||
script: |
|
||||
Write-Host "SourceBranch " + "$(SourceBranch)"
|
||||
Write-Host "TargetBranch " + "$(TargetBranch)"
|
||||
|
||||
$repo = "${{ parameters.SourceRepository }}"
|
||||
git remote add sourcerepo $repo
|
||||
git remote
|
||||
$repo = "${{ parameters.SourceRepository }}"
|
||||
git remote add sourcerepo $repo
|
||||
git remote
|
||||
|
||||
$target = "$(TargetBranch)"
|
||||
git fetch origin $target
|
||||
git checkout $target
|
||||
git pull origin $target
|
||||
$target = "$(TargetBranch)"
|
||||
git fetch origin $target
|
||||
git checkout $target
|
||||
git pull origin $target
|
||||
|
||||
$source = "$(SourceBranch)"
|
||||
git fetch sourcerepo $source
|
||||
git pull sourcerepo $source
|
||||
|
||||
- task: CmdLine@2
|
||||
inputs:
|
||||
script: |
|
||||
git push
|
||||
$source = "$(SourceBranch)"
|
||||
git fetch sourcerepo $source
|
||||
git pull sourcerepo $source
|
||||
|
||||
- task: CmdLine@2
|
||||
inputs:
|
||||
script: |
|
||||
git push
|
||||
|
|
Загрузка…
Ссылка в новой задаче