@@ -11,44 +11,57 @@ parameters:
1111 type : string
1212 default : " https://github.com/microsoft/cppwinrt.git"
1313
14- jobs :
15- - job : SyncMirror
16- strategy :
17- matrix :
18- ${{ each branches in parameters.SourceToTargetBranches }} :
19- ${{ branches.key }} :
20- SourceBranch : ${{ branches.key }}
21- TargetBranch : ${{ branches.value }}
22- dependsOn : []
14+ resources :
15+ repositories :
16+ - repository : 1ESPipelineTemplates
17+ type : git
18+ name : 1ESPipelineTemplates/1ESPipelineTemplates
19+ ref : refs/tags/release
20+ extends :
21+ template : v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
22+ parameters :
2323 pool :
24- name : Azure Pipelines
25- vmImage : ' windows-2022'
26- steps :
27- - checkout : self
28- persistCredentials : true
24+ name : Azure-Pipelines-1ESPT-ExDShared
25+ image : windows-2022
26+ os : windows
27+ customBuildTags :
28+ - ES365AIMigrationTooling
29+ stages :
30+ - stage : stage
31+ jobs :
32+ - job : SyncMirror
33+ strategy :
34+ matrix :
35+ ${{ each branches in parameters.SourceToTargetBranches }} :
36+ ${{ branches.key }} :
37+ SourceBranch : ${{ branches.key }}
38+ TargetBranch : ${{ branches.value }}
39+ dependsOn : []
40+ steps :
41+ - checkout : self
42+ persistCredentials : true
2943
30- - task : PowerShell@2
31- inputs :
32- targetType : ' inline'
33- script : |
34- Write-Host "SourceBranch " + "$(SourceBranch)"
35- Write-Host "TargetBranch " + "$(TargetBranch)"
44+ - task : PowerShell@2
45+ inputs :
46+ targetType : ' inline'
47+ script : |
48+ Write-Host "SourceBranch " + "$(SourceBranch)"
49+ Write-Host "TargetBranch " + "$(TargetBranch)"
3650
37- $repo = "${{ parameters.SourceRepository }}"
38- git remote add sourcerepo $repo
39- git remote
51+ $repo = "${{ parameters.SourceRepository }}"
52+ git remote add sourcerepo $repo
53+ git remote
4054
41- $target = "$(TargetBranch)"
42- git fetch origin $target
43- git checkout $target
44- git pull origin $target
55+ $target = "$(TargetBranch)"
56+ git fetch origin $target
57+ git checkout $target
58+ git pull origin $target
4559
46- $source = "$(SourceBranch)"
47- git fetch sourcerepo $source
48- git pull sourcerepo $source
49-
50- - task : CmdLine@2
51- inputs :
52- script : |
53- git push
60+ $source = "$(SourceBranch)"
61+ git fetch sourcerepo $source
62+ git pull sourcerepo $source
5463
64+ - task : CmdLine@2
65+ inputs :
66+ script : |
67+ git push
0 commit comments