generated from hmcts/expressjs-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile_nightly
64 lines (55 loc) · 2.75 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
// TEMPORARILY DISABLED UNTIL TESTS HAVE BEEN UPDATED (NFDIV-4316)
// #!groovy
// properties([
// // H allow predefined but random minute see https://en.wikipedia.org/wiki/Cron#Non-standard_characters
// pipelineTriggers([cron('H 08 * * 1-5')]),
// parameters([
// string(name: 'RUNNING_ENV', defaultValue: 'aat', description: 'Environment to test'),
// string(name: 'XUI_URL_TO_TEST', defaultValue: 'https://manage-case.aat.platform.hmcts.net/', description: 'The URL you want to run solicitor tests against'),
// ])
// ])
// @Library("Infrastructure") _
// String product = "nfdiv"
// String component = "ccd-e2e-tests"
// def secrets = [
// 'nfdiv-${env}': [
// secret('idam-solicitor-username', 'PROF_USER_EMAIL'),
// secret('idam-solicitor-password', 'PROF_USER_PASSWORD'),
// secret('idam-respondent-solicitor-admin-username', 'CCD_CASEWORKER_E2E_EMAIL'),
// secret('idam-respondent-solicitor-admin-password', 'CCD_CASEWORKER_E2E_PASSWORD'),
// secret('idam-respondent-solicitor-1-username', 'RESPONDENT_SOLICITOR_1_USERNAME'),
// secret('idam-respondent-solicitor-1-password', 'RESPONDENT_SOLICITOR_1_PASSWORD'),
// secret('idam-systemupdate-username', 'SYSTEMUPDATE_USERNAME'),
// secret('idam-systemupdate-password', 'SYSTEMUPDATE_PASSWORD'),
// secret('idam-legal-advisor-username', 'LEGAL_ADVISOR_USERNAME'),
// secret('idam-legal-advisor-password', 'LEGAL_ADVISOR_PASSWORD'),
// secret('s2s-case-api-secret', 'SERVICE_AUTH_SECRET'),
// secret('idam-secret', 'IDAM_SECRET'),
// secret('idam-solicitor-username', 'SOLICITOR_USER_NAME'),
// secret('idam-solicitor-password', 'SOLICITOR_PASSWORD'),
// secret('idam-test-caseworker-username', 'CASEWORKER_USER_NAME'),
// secret('idam-test-caseworker-password', 'CASEWORKER_PASSWORD'),
// secret('idam-citizen-username', 'CITIZEN_USER_NAME'),
// secret('idam-citizen-password', 'CITIZEN_PASSWORD'),
// secret('idam-nfd-e2e-test-system-update-username', 'NFD_E2E_SYSTEM_UPDATE_USERNAME'),
// secret('idam-nfd-e2e-test-system-update-password', 'NFD_E2E_SYSTEM_UPDATE_PASSWORD')
// ]
// ]
// static LinkedHashMap<String, Object> secret(String secretName, String envVar) {
// [ $class: 'AzureKeyVaultSecret',
// secretType: 'Secret',
// name: secretName,
// version: '',
// envVariable: envVar
// ]
// }
// withNightlyPipeline("nodejs", product, component) {
// env.TEST_E2E_URL = params.XUI_URL_TO_TEST
// env.NODE_ENV = 'ci'
// loadVaultSecrets(secrets)
// enableCrossBrowserTest(60)
// enableFullFunctionalTest(120)
// afterAlways('fullFunctionalTest') {
// steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'functional-output/**/*'
// }
// }