-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathJenkinsfile_nightly
46 lines (38 loc) · 1.26 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
45
46
#!groovy
properties([
// H allow predefined but random minute see https://en.wikipedia.org/wiki/Cron#Non-standard_characters
pipelineTriggers([cron('H 8 * * 1-5')])
])
@Library("Infrastructure")
def type = "java"
def product = "rpe"
def component = "send-letter-service"
def channel = '#bsp-build-notices'
env.TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX = 'hmctspublic.azurecr.io/imported/'
secrets = [
's2s-${env}': [
secret('microservicekey-send-letter-tests', 'TEST_S2S_SECRET')
],
'rpe-send-letter-${env}': [
secret('fortify-on-demand-username', 'FORTIFY_USER_NAME'),
secret('fortify-on-demand-password', 'FORTIFY_PASSWORD'),
secret('launch-darkly-sdk-key', 'LAUNCH_DARKLY_SDK_KEY'),
secret('launch-darkly-offline-mode', 'LAUNCH_DARKLY_OFFLINE_MODE')
]
]
static LinkedHashMap<String, Object> secret(String secretName, String envVar) {
[ $class: 'AzureKeyVaultSecret',
secretType: 'Secret',
name: secretName,
version: '',
envVariable: envVar
]
}
withNightlyPipeline(type, product, component) {
loadVaultSecrets(secrets)
// enableFortifyScan('rpe-send-letter-aat')
enableSlackNotifications(channel)
// afterSuccess('fortify-scan') {
// steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/Fortify Scan/**/*'
//}
}