-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathJenkinsfile_nightly
More file actions
63 lines (53 loc) · 2.5 KB
/
Jenkinsfile_nightly
File metadata and controls
63 lines (53 loc) · 2.5 KB
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
#!groovy
properties([
pipelineTriggers([cron('H 08 * * 1-5')]),
parameters([
string(name: 'ENVIRONMENT', defaultValue: 'aat', description: 'Environment to test'),
string(name: 'ExUI_URL_TO_TEST', defaultValue: 'https://manage-case.aat.platform.hmcts.net', description: 'The ExUI Url you want to run ECM end to end tests'),
string(name: 'IDAM_API_URL', defaultValue: 'https://idam-api.aat.platform.hmcts.net', description: 'The Url of IDAM Api'),
string(name: 'S2S_PROVIDER_URL', defaultValue: 'http://rpe-service-auth-provider-aat.service.core-compute-aat.internal', description: 'The Url of S2S provider Api'),
string(name: 'CCD_DATA_STORE_URL', defaultValue: 'http://ccd-data-store-api-aat.service.core-compute-aat.internal', description: 'The Url of ccd data store Api'),
string(name: 'SecurityRules',
defaultValue: 'https://raw.githubusercontent.com/hmcts/security-test-rules/master/conf/security-rules.conf',
description: 'The URL you want to run these tests against'),
])
])
@Library("Infrastructure")
def type = "java"
def product = "ethos"
def component = "repl-docmosis-backend"
def vaultOverrides = [
'aat' : params.ENVIRONMENT,
]
def secrets = [
"ethos-shared-${params.ENVIRONMENT}": [
secret('ccd-user-email', 'CCD_CASEWORKER_E2E_EMAIL'),
secret('ccd-user-password', 'CCD_CASEWORKER_E2E_PASSWORD'),
secret('ethos-repl-service-s2s-secret', 'SERVICE_SECRET'),
secret('ecm-idam-client-secret', 'ECM_IDAM_CLIENT_SECRET')
],
's2s-${env}': [
secret('microservicekey-ccd-gw', 'MICROSERVICE_CCD_GW')
]
]
static LinkedHashMap<String, Object> secret(String secretName, String envVar) {
[ $class: 'AzureKeyVaultSecret',
secretType: 'Secret',
name: secretName,
version: '',
envVariable: envVar
]
}
withNightlyPipeline(type, product, component) {
env.TEST_E2E_URL = params.ExUI_URL_TO_TEST
env.IDAM_URL = params.IDAM_API_URL
env.S2S_PROVIDER = params.S2S_PROVIDER_URL
env.CCD_DATA_STORE_API_URL = params.CCD_DATA_STORE_URL
env.RUNNING_ENV = params.ENVIRONMENT
overrideVaultEnvironments(vaultOverrides)
loadVaultSecrets(secrets)
enableFortifyScan('ethos-shared-aat')
afterSuccess('fortify-scan') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/Fortify Scan/**/*'
}
}