-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathJenkinsfile_nightly
executable file
·28 lines (22 loc) · 1.04 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
#!groovy
properties([
//Uncomment below line to schedule the nightly run
pipelineTriggers([cron('H 08 * * 1-5')]),
parameters([
string(name: 'ENVIRONMENT', defaultValue: 'aat', description: 'Environment to test'),
string(name: 'URL_TO_TEST', defaultValue: 'https://pcq.aat.platform.hmcts.net', description: 'The URL you want to run these tests against'),
string(name: 'BaseURL', defaultValue: 'https://pcq.aat.platform.hmcts.net', description: 'The CCD Case Create Url')
])
])
@Library("Infrastructure")
def product = "pcq"
def component = "pcq-performance-tests"
withNightlyPipeline("java", product, component) {
// Add any environment variables for executing your performance tests for example see below
env.TEST_URL = 'https://pcq.aat.platform.hmcts.net'
env.BaseURL = 'https://pcq.aat.platform.hmcts.net'
enablePerformanceTest()
after('performanceTest') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'functional-output/**/*'
}
}