generated from hmcts/expressjs-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile_nightly_disabled
71 lines (59 loc) · 2.04 KB
/
Jenkinsfile_nightly_disabled
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
67
68
69
70
71
#!groovy
properties([
// H allow predefined but random minute see https://en.wikipedia.org/wiki/Cron#Non-standard_characters
pipelineTriggers([cron('H 07 * * 1-5')]),
parameters([
string(name: 'FRONTEND_URL', defaultValue: 'https://fis-ds-update-web.aat.platform.hmcts.net/', description: 'The URL you want to run tests against'),
string(name: 'FUNCTIONAL_TESTS_WORKERS',
defaultValue: '2',
description: 'Number of workers running functional tests'),
])
])
@Library("Infrastructure")
import uk.gov.hmcts.contino.AppPipelineConfig
def type = "nodejs"
def product = "fis"
def component = "ds-web"
// SAUCELABS config - configured on Jenkins
env.SAUCE_USERNAME = 'username'
env.SAUCE_ACCESS_KEY = 'privatekey'
//env.SAUCE_TUNNEL_IDENTIFIER = 'reformtunnel'
def yarnBuilder = new uk.gov.hmcts.contino.YarnBuilder(this)
static Map<String, Object> secret(String secretName, String envVariable) {
[$class : 'AzureKeyVaultSecret',
secretType : 'Secret',
name : secretName,
envVariable: envVariable
]
}
def secrets = [
'fis-${env}' :[
secret('idam-ui-secret', 'IDAM_SECRET'),
secret('idam-system-user-password', 'TEST_PASSWORD'),
secret('citizen-user', 'CITIZEN_USERNAME'),
secret('citizen-password', 'CITIZEN_PASSWORD')
],
's2s-${env}': [
secret('microservicekey-ds-ui', 'SERVICE_AUTH_SECRET')
]
]
def pipelineConf = new AppPipelineConfig()
pipelineConf.vaultSecrets = secrets
withNightlyPipeline(type, product, component) {
env.TEST_URL = "https://fis-ds-update-web.aat.platform.hmcts.net/?dss-updateType=FMP"
env.DS_UI_URL = params.FRONTEND_URL
enableCrossBrowserTest(60)
//enableFullFunctionalTest(120)
loadVaultSecrets(secrets)
// enablePactAs([ AppPipelineDsl.PactRoles.CONSUMER ])
// enableFortifyScan()
// enableSecurityScan()
afterAlways('test') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'coverage/**/*'
}
before('crossBrowserTest') {
}
afterAlways('crossBrowserTest') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'output/**/*'
}
}