This repository has been archived by the owner on Apr 10, 2024. It is now read-only.
forked from hmcts/prl-wa-post-deployment-ft-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile_nightly
66 lines (52 loc) · 2.54 KB
/
Jenkinsfile_nightly
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
66
#!groovy
properties([
pipelineTriggers([cron('0 8,18 * * 1-5')])
])
@Library("Infrastructure")
def type = "java"
def product = "ia"
def component = "wa-post-deployment-ft-tests"
def secrets = [
'ia-${env}' : [
secret('idam-redirect-uri', 'IA_IDAM_REDIRECT_URI'),
secret('idam-client-id', 'IA_IDAM_CLIENT_ID'),
secret('idam-secret', 'IA_IDAM_CLIENT_SECRET'),
secret('ccd-shared-servicebus-connection-string', 'AZURE_SERVICE_BUS_CONNECTION_STRING'),
secret('test-law-firm-a-username', 'TEST_WA_LAW_FIRM_USERNAME'),
secret('test-law-firm-a-password', 'TEST_WA_LAW_FIRM_PASSWORD'),
secret('wa-test-caseofficer-a-username', 'TEST_WA_CASEOFFICER_PUBLIC_A_USERNAME'),
secret('wa-test-caseofficer-a-password', 'TEST_WA_CASEOFFICER_PUBLIC_A_PASSWORD'),
secret('system-username', 'WA_SYSTEM_USERNAME'),
secret('system-password', 'WA_SYSTEM_PASSWORD'),
secret('wa-test-adminofficer-username', 'TEST_ADMINOFFICER_USERNAME'),
secret('wa-test-adminofficer-password', 'TEST_ADMINOFFICER_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
]
}
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_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.PRL_WA_POST_DEPLOYMENT_TEST_ENVIRONMENT="aat"
loadVaultSecrets(secrets)
enableFullFunctionalTest(60)
}