forked from hmcts/ccd-data-store-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile_CNP
39 lines (33 loc) · 1.05 KB
/
Jenkinsfile_CNP
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
#!groovy
properties(
[
[
$class: 'GithubProjectProperty',
projectUrlStr: 'https://github.com/hmcts/ccd-data-store-api'
],
pipelineTriggers([[$class: 'GitHubPushTrigger']])
]
)
@Library("Infrastructure")
def type = "java"
def product = "ccd"
def app = "data-store-api"
List<LinkedHashMap<String, Object>> secrets = [
secret('caseworkerAutoTest1Email', 'CCD_CASEWORKER_AUTOTEST_EMAIL'),
secret('caseworkerAutoTest1Password', 'CCD_CASEWORKER_AUTOTEST_PASSWORD'),
secret('microserviceGatewayName', 'CCD_GW_SERVICE_NAME'),
secret('microserviceGatewaySecret', 'CCD_GW_SERVICE_SECRET'),
]
static LinkedHashMap<String, Object> secret(String secretName, String envVar) {
[ $class: 'AzureKeyVaultSecret',
secretType: 'Secret',
name: secretName,
version: '',
envVariable: envVar
]
}
withPipeline(type, product, app) {
env.IDAM_URL='http://betadevbccidamapplb.reform.hmcts.net'
env.S2S_URL='http://betaDevBccidamS2SLB.reform.hmcts.net'
loadVaultSecrets(secrets)
}