@@ -11,44 +11,57 @@ parameters:
11
11
type : string
12
12
default : " https://github.com/microsoft/cppwinrt.git"
13
13
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 :
23
23
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
29
43
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)"
36
50
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
40
54
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
45
59
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
54
63
64
+ - task : CmdLine@2
65
+ inputs :
66
+ script : |
67
+ git push
0 commit comments