-
Notifications
You must be signed in to change notification settings - Fork 9
/
Jenkinsfile_nightly
39 lines (30 loc) · 1.24 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
#!groovy
properties([
pipelineTriggers([cron('8 8 * * 1-5')]),
parameters([
string(name: 'URL_TO_TEST', defaultValue: 'https://petitioner-frontend-aks.aat.platform.hmcts.net', description: 'The URL you want to run these tests against'),
])
])
@Library("Infrastructure")
def product = "div"
def component = "pfe"
final CROSS_BROWSER_TESTS_TIMEOUT_IN_MINUTES = 240
final FULL_FUNCTIONAL_TESTS_TIMEOUT_IN_MINUTES = 240
withNightlyPipeline("nodejs", product, component) {
env.TEST_URL = params.URL_TO_TEST
env.FEATURE_IDAM = 'true'
enableCrossBrowserTest(CROSS_BROWSER_TESTS_TIMEOUT_IN_MINUTES)
enableMutationTest()
enableFullFunctionalTest(FULL_FUNCTIONAL_TESTS_TIMEOUT_IN_MINUTES)
enableFortifyScan()
afterSuccess('crossBrowserTest') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'functional-output/**/*'
}
afterSuccess('fullFunctionalTest') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'smoke-output/**/*'
steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'functional-output/**/*'
}
afterSuccess('fortify-scan') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/Fortify Scan/**/*'
}
}