-
Notifications
You must be signed in to change notification settings - Fork 2
/
Jenkinsfile_nightly
29 lines (23 loc) · 1000 Bytes
/
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
#!groovy
properties([
pipelineTriggers([cron('H 07 * * 1-5')]),
parameters([
string(name: 'URL_TO_TEST', defaultValue: 'https://probate-orchestrator-service-aat.service.core-compute-aat.internal', description: 'The URL you want to run these tests against'),
string(name: 'SecurityRules',
defaultValue: 'https://raw.githubusercontent.com/hmcts/security-test-rules/master/conf/security-rules.conf',
description: 'The URL you want to run these tests against'),
])
])
@Library("Infrastructure")
def type = "java"
def product = "probate"
def component = "orchestrator-service"
withNightlyPipeline(type, product, component) {
env.TEST_URL = params.URL_TO_TEST
env.Rules = params.SecurityRules
enableSecurityScan()
enableFortifyScan('probate-aat')
afterSuccess('fortify-scan') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/Fortify Scan/**/*'
}
}