-
Notifications
You must be signed in to change notification settings - Fork 4
/
Jenkinsfile_nightly
43 lines (34 loc) · 1.29 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
#!groovy
properties([
// H allow predefined but random minute see https://en.wikipedia.org/wiki/Cron#Non-standard_characters
pipelineTriggers([cron('H 07 * * 1-5')])
])
@Library("Infrastructure")
def type = "java"
def product = "camunda"
def component = "bpm"
def channel = '#platops-build-notices'
def secrets = [
secret('camunda-enterprise-user', 'ORG_GRADLE_PROJECT_CAMUNDA_NEXUS_USER'),
secret('camunda-enterprise-password', 'ORG_GRADLE_PROJECT_CAMUNDA_NEXUS_PASSWORD'),
]
static LinkedHashMap<String, Object> secret(String secretName, String envVar) {
[
secretType: 'Secret',
name: secretName,
version: '',
envVariable: envVar
]
}
withNightlyPipeline(type, product, component) {
afterSuccess('checkout') {
withAzureKeyvault(azureKeyVaultSecrets: secrets,
keyVaultURLOverride: 'https://rpe-prod.vault.azure.net') {
env.ORG_GRADLE_PROJECT_CAMUNDA_NEXUS_USER = env.ORG_GRADLE_PROJECT_CAMUNDA_NEXUS_USER
env.ORG_GRADLE_PROJECT_CAMUNDA_NEXUS_PASSWORD = env.ORG_GRADLE_PROJECT_CAMUNDA_NEXUS_PASSWORD
}
}
env.S2S_URL = "http://rpe-service-auth-provider-aat.service.core-compute-aat.internal"
env.TASK_MANAGEMENT_API_URL = "http://wa-task-management-api-aat.service.core-compute-aat.internal"
enableSlackNotifications(channel)
}