-
Notifications
You must be signed in to change notification settings - Fork 170
/
SyncMirroredRepository.yml
56 lines (50 loc) · 1.41 KB
/
SyncMirroredRepository.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: 1.0.$(Year:yy)$(DayOfYear).$(Rev:r) # This is the build number
pr: none
trigger: none
schedules:
- cron: '0 8 * * *'
displayName: Daily Sync
branches:
include:
- main
- releases/*
pool:
name: 'd365bc-agentpool-nonprod-bcapps-sync'
resources:
repositories:
- repository: PipelineTemplates
type: git
name: Infrastructure-PipelineTemplates
ref: master
variables:
- template: ./variables-common.yml
- template: workitem-build-tracking-variables.yml@PipelineTemplates
jobs:
- job: SyncMirror
dependsOn: []
displayName: Sync mirror with upstream
steps:
- powershell: |
git config --global user.email "[email protected]"
git config --global user.name "BCApps-Sync"
displayName: Update Git Config
- task: powershell@2
displayName: Sync mirror with upstream
inputs:
filePath: build\scripts\SyncMirror.ps1
arguments: '-SourceRepository "https://github.com/microsoft/BCApps.git" -TargetRepository $(TargetRepository) -Branch $(Build.SourceBranch) -ManagedIdentityAuth'
- job: ReportBuildStatus
dependsOn:
- SyncMirror
pool: 'd365bc-agentpool-nonprod-build-official'
condition: failed()
displayName: Report build status
steps:
- checkout: none
- template: workitem-build-tracking.yml@PipelineTemplates
parameters:
Priority: '2'
Severity: '2'
Issue: 'Build Break'
SecurityImpact: 'No'
Condition: always()