-
Notifications
You must be signed in to change notification settings - Fork 7
/
azure-pipelines.yml
106 lines (92 loc) · 2.52 KB
/
azure-pipelines.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
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
trigger:
branches:
include:
- main
- stable
pr:
branches:
include:
- main
- stable
pool:
name: agent-pool-onprem-ubuntu
# demands: Agent.CPU -equals 8
schedules:
- cron: "0 0 1 * *"
displayName: Monthly scheduled build
branches:
include:
- main
always: true
- cron: "0 0 * * *"
displayName: Daily scheduled build
branches:
include:
- stable
always: true
variables:
ociServiceConnection: oci-service-connection-jbpf
acr: jbpfpipeline
baseImageMajor: 1
baseImageMinor: $[counter(format('{0}.base',variables['baseImageMajor']),0)]
containerRegistry: $[format('{0}.azurecr.io',variables['acr'])]
DOCKER_BUILDKIT: 1
imageTag: "$[format('pipeline-{0}-{1}', replace(variables['build.buildnumber'], '.', '-'), variables['build.sourceversion'])]"
resources:
repositories:
- repository: templates
type: git
name: 5GRack/PipelineTemplates
ref: refs/heads/main
stages:
- stage: CheckVars
displayName: Environment
jobs:
- job: CheckVars
displayName: Environment
steps:
- template: environment/print.yaml@templates
parameters:
rootParameters: ${{ parameters }}
- stage: Guardian
jobs:
- job: guardian
pool:
vmImage: windows-latest
displayName: Guardian
steps:
# Don't checkout submodules, because we don't want to run the guardian checks on 3P code.
- checkout: self
submodules: false
- template: agentpool/guardian-checks.yaml@templates
- stage: ComponentsGoverance
dependsOn: []
jobs:
- job: componentsgovernance
displayName: Components Governance
steps:
- template: agentpool/component-governance.yaml@templates
parameters:
outputformat: 'text'
outputfile: '$(System.DefaultWorkingDirectory)/NOTICE'
- stage: HouseKeeping
dependsOn: []
jobs:
- job: housekeeping
displayName: House Keeping
workspace:
clean: all
steps:
- template: agentpool/cleanup.yaml@templates
- template: pipeline/print-debug-info.yaml
- template: pipeline/house-keeping.yaml
- template: agentpool/cleanup.yaml@templates
- template: pipeline/build-for-os.yaml
- stage: Doxygen
dependsOn: []
displayName: Doxygen
jobs:
- job: doxygen
displayName: Doxygen
steps:
- template: pipeline/doxygen.yaml