-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathvsts-cicd.yml
More file actions
106 lines (96 loc) · 2.73 KB
/
vsts-cicd.yml
File metadata and controls
106 lines (96 loc) · 2.73 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
name: $(major).$(minor).$(Date:yyMM).$(Rev:r)
trigger:
- develop
- main
schedules:
- cron: "0 0 * * 0"
displayName: Weekly Build
branches:
include:
- main
always: true
pool:
vmImage: "windows-latest"
variables:
"major": '2'
"minor": '0'
"BuildConfiguration": 'debug'
disable.coverage.autogenerate: 'true'
"buildRelease": ${{ in(variables['Build.SourceBranch'], 'refs/heads/main') }}
parameters:
- name: buildSourceCode
displayName: Build source code?
type: boolean
default: false
stages:
- template: build-tag.yml
parameters:
tagName: $(Build.BuildNumber)
- ${{ if or(eq( variables['Build.Reason'], 'Schedule' ), eq(parameters.buildSourceCode, true)) }}:
- template: build-services.yml
parameters:
repoToCheckout: self
checkoutPath: '$(Build.BuildNumber)'
buildRelease: ${{variables.buildRelease}}
- template: yaml/build-functionapps.yml
parameters:
dependsOn: Build_Common
condition: succeeded('Build_Common')
repoToCheckout: self
checkoutPath: '$(Build.BuildNumber)'
buildRelease: ${{variables.buildRelease}}
functionApps:
- function:
name: 'NonProdService'
coverageThreshold: 100
- function:
name: 'JobTrigger'
coverageThreshold: 86
- function:
name: 'GraphUpdater'
coverageThreshold: 74
- function:
name: 'TeamsChannelUpdater'
coverageThreshold: 69
- function:
name: 'DestinationAttributesUpdater'
coverageThreshold: 64
- function:
name: 'GroupMembershipObtainer'
coverageThreshold: 89
- function:
name: 'SqlMembershipObtainer'
coverageThreshold: 50
- function:
name: 'PlaceMembershipObtainer'
coverageThreshold: 45
- function:
name: 'TeamsChannelMembershipObtainer'
coverageThreshold: 72
- function:
name: 'AzureMaintenance'
coverageThreshold: 95
- function:
name: 'AzureUserReader'
coverageThreshold: 62
- function:
name: 'JobScheduler'
coverageThreshold: 48
- function:
name: 'MembershipAggregator'
coverageThreshold: 85
- function:
name: 'Notifier'
coverageThreshold: 75
- function:
name: 'GroupOwnershipObtainer'
coverageThreshold: 80
- template: yaml/build-release-package.yml
parameters:
repoToCheckout: self
checkoutPath: '$(Build.BuildNumber)'
buildRelease: ${{variables.buildRelease}}