forked from hmcts/ccpay-cpo-function-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile_CNP
More file actions
34 lines (29 loc) · 761 Bytes
/
Jenkinsfile_CNP
File metadata and controls
34 lines (29 loc) · 761 Bytes
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
#!groovy
//noinspection GroovyUnusedAssignment
@Library("Infrastructure")
def type = "nodejs"
def product = "ccpay"
def component = "cpo-callback-function"
def secrets = [
'ccpay-${env}': [
secret('ccpay-cpo-s2s-secret', 'S2S_KEY_CCPAY_CPO_FUNCTION')
]
]
static LinkedHashMap<String, Object> secret(String secretName, String envVar) {
[ $class: 'AzureKeyVaultSecret',
secretType: 'Secret',
name: secretName,
version: '',
envVariable: envVar
]
}
def vaultOverrides = [
'preview': 'aat',
'hmctsdemo': 'aat',
]
withPipeline(type, product, component) {
overrideVaultEnvironments(vaultOverrides)
disableLegacyDeployment()
nonServiceApp()
loadVaultSecrets(secrets)
}