-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yaml
More file actions
51 lines (44 loc) · 1.59 KB
/
azure-pipelines.yaml
File metadata and controls
51 lines (44 loc) · 1.59 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
name: CPP Context Verify & Validation
# Need to update this for actual migration
trigger:
branches:
include:
- main
- 'team/*'
exclude:
- 'dev/release-*'
paths:
include:
- '*'
pr:
- '*'
resources:
repositories:
- repository: cppAzureDevOpsTemplates
type: github
name: hmcts/cpp-azure-devops-templates
endpoint: 'hmcts'
ref: 'main'
pool:
name: "MDV-ADO-AGENT-AKS-01"
demands:
- identifier -equals centos8-j17
variables:
sonarqubeProject: "uk.gov.moj.cpp.results:results-parent" # update eg: uk.gov.moj.cpp.listing:listing-parent
service_Name: 'results' # this should be service name. Image repository will be <serviceName>-service and should be in sysnc with aks-deploy repo.. eg : stagingbulkscan, hearing, systemidmapper
itTest_Folder: 'results-integration-test' # integration test folder name system-id-mapper-integration-test
LANG : 'en_GB.UTF-8' # update lang u need
LC_ALL : 'en_GB.UTF-8' # update LC u need
stages:
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
- template: pipelines/context-verify.yaml@cppAzureDevOpsTemplates
parameters:
sonarqube_project: ${{ variables['sonarqubeProject'] }}
sonarQubeType: 'sonarQubeAKS'
- ${{ if eq(variables['Build.Reason'], 'IndividualCI') }}:
- template: pipelines/context-validation.yaml@cppAzureDevOpsTemplates
parameters:
repo: "$(Build.Repository.Name)"
sonarQubeType: 'sonarQubeAKS'
serviceName: ${{ variables['service_Name'] }}
itTestFolder: ${{ variables['itTest_Folder'] }}