-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile_CNP
59 lines (49 loc) · 2.29 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!groovy
properties([
parameters([
string(name: 'DLQ_PROCESS_ENABLED', defaultValue: 'false', description: 'Run the tests on dlq process flow')
])
])
@Library("Infrastructure")
def type = "java"
def product = "prl"
def component = "wa-post-deployment-ft-tests"
def secrets = [
'wa-${env}' : [
secret('idam-redirect-uri', 'IA_IDAM_REDIRECT_URI'),
secret('wa-idam-client-secret', 'WA_IDAM_CLIENT_SECRET'),
secret('ccd-shared-servicebus-connection-string', 'AZURE_SERVICE_BUS_CONNECTION_STRING'),
secret('wa-system-username', 'WA_SYSTEM_USERNAME'),
secret('wa-system-password', 'WA_SYSTEM_PASSWORD'),
],
's2s-${env}': [
secret('microservicekey-wa-task-management-api', 'S2S_SECRET_TASK_MANAGEMENT_API'),
]
]
static LinkedHashMap<String, Object> secret(String secretName, String envVar) {
[$class : 'AzureKeyVaultSecret',
secretType : 'Secret',
name : secretName,
version : '',
envVariable: envVar
]
}
//Run Jenkins_CNP with nightly pipeline
withNightlyPipeline(type, product, component) {
env.AZURE_SERVICE_BUS_TOPIC_NAME = "ccd-case-events-aat"
env.CCD_URL = "http://ccd-data-store-api-aat.service.core-compute-aat.internal"
env.DM_STORE_URL = "http://dm-store-aat.service.core-compute-aat.internal"
env.IDAM_URL = "https://idam-api.aat.platform.hmcts.net"
env.S2S_URL = "http://rpe-service-auth-provider-aat.service.core-compute-aat.internal"
env.OPEN_ID_IDAM_URL = "https://idam-web-public.aat.platform.hmcts.net"
env.DOCUMENT_STORE_URL = "http://dm-store-aat.service.core-compute-aat.internal"
env.WA_TASK_MANAGEMENT_API_URL = "http://wa-task-management-api-aat.service.core-compute-aat.internal"
env.WA_CASE_EVENT_HANDLER_URL = "http://wa-case-event-handler-aat.service.core-compute-aat.internal"
env.WA_TASK_MONITOR_URL = "http://wa-task-monitor-aat.service.core-compute-aat.internal"
env.CAMUNDA_URL = "http://camunda-api-aat.service.core-compute-aat.internal/engine-rest"
env.ROLE_ASSIGNMENT_URL = "http://am-role-assignment-service-aat.service.core-compute-aat.internal"
env.WA_POST_DEPLOYMENT_TEST_ENVIRONMENT="aat"
env.ENABLE_TEST_USER_DELETION = true
loadVaultSecrets(secrets)
enableFullFunctionalTest(60)
}