This repository has been archived by the owner on Jun 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines-scheduled.yml
65 lines (59 loc) · 1.84 KB
/
azure-pipelines-scheduled.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
# Java
# Package your Java project.
# Add steps that install, analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
name: 'Scheduled-$(SourceBranchName)-$(Build.SourceVersion) Build-$(Build.BuildId)'
schedules:
- cron: "0 0 * * *"
displayName: Daily midnight build
branches:
include:
- master
always: true
trigger: none
pr: none
variables:
# group: pipeline-env-variables
environment: 'stg' #Uset test and promoting to stg until prod is ready
env.upper: 'STG'
env.prom: 'prod'
env.prom.upper: 'PROD'
application.name: 'data-extractor-job'
azure.subscription.endpoint: 'DTS-SHAREDSERVICES-$(env.upper)'
azure.aks.resourcegroup: 'ss-$(env)-00-rg'
azure.aks.cluster: 'ss-$(env)-00-aks'
azure.prom.subscription.endpoint: 'DTS-SHAREDSERVICES-$(env.prom.upper)'
manual.branch.prefix: 'master'
product: 'mi'
vault: 'mi-vault-$(env)'
helm.repo: 'sdshmctspublic'
resources:
repositories:
- repository: mi-core
type: github
name: hmcts/mi-core-lib
endpoint: hmcts
stages:
- template: pipeline-steps/templates/build-deploy-stage.yaml@mi-core
parameters:
env: $(environment)
applicationName: $(application.name)
product: $(product)
azureVault: $(vault)
chartEnv: $(environment)
mutationTest: True
functionalTest: true
preIntegrationTest: true
helmRepo: $(helm.repo)
agentPool: hmcts-ss-$(environment)
envMapping:
- key: BUILD_VERSION
value: Build.BuildId
azureSecreKeys: 'ccdro-user,ccdro-password,data-extractor-connection-string'
azureKeyMapping:
- key: ETL_DB_USER
value: 'ccdro-user'
- key: ETL_DB_PASSWORD
value: 'ccdro-password'
- key: ETL_CONNECTIONSTRING
value: 'data-extractor-connection-string'