forked from hmcts/probate-performance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile_nightly
44 lines (31 loc) · 1.02 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
#!groovy
properties([
pipelineTriggers([cron('H 08 * * 1-5')]),
//A build parameter TEST_TYPE is used to tell the script to use the pipeline simulation configuration
parameters([
choice(name: 'TEST_TYPE', choices: 'pipeline', description: 'Test type (must be \'pipeline\' for Jenkins use)')
])
])
@Library("Infrastructure")
def product = "probate"
def component = "citizen"
def secrets = [
'ccd-perftest': [
secret('ccd-api-gateway-oauth2-client-secret', 'CLIENT_SECRET')
]
]
static LinkedHashMap<String, Object> secret(String secretName, String envVar) {
[$class : 'AzureKeyVaultSecret',
secretType : 'Secret',
name : secretName,
version : '',
envVariable: envVar
]
}
withNightlyPipeline("java", product, component) {
loadVaultSecrets(secrets)
enablePerformanceTest(30)
after('performanceTest') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'functional-output/**/*'
}
}