-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile_CNP
41 lines (34 loc) · 1.05 KB
/
Jenkinsfile_CNP
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
#!groovy
@Library("Infrastructure")
def type = "java"
def product = "recipes"
def component = "backend"
// Unused code, no API is deployed for this service
// Determine the environment based on the Jenkins URL
// def keyVault = env.JENKINS_URL.contains('sds') ? 'toffeesi-${env}' : 'plumsi-${env}'
// def apiTestSecrets = [ "${keyVault}" :
// [
// secret('test-client-key-store', 'TEST_CLIENT_KEY_STORE'),
// secret('test-client-key-store-password', 'TEST_CLIENT_KEY_STORE_PASSWORD'),
// secret('test-client-subscription-key', 'TEST_CLIENT_SUBSCRIPTION_KEY')
// ]
// ]
static LinkedHashMap<String, Object> secret(String secretName, String envVar) {
[ $class: 'AzureKeyVaultSecret',
secretType: 'Secret',
name: secretName,
version: '',
envVariable: envVar
]
}
def expiresAfter = "3000-01-01"
withPipeline(type, product, component) {
enablePerformanceTest()
enableAksStagingDeployment()
disableLegacyDeployment()
// enableApiGatewayTest()
// onNonPR() {
// loadVaultSecrets(apiTestSecrets)
// }
expires(expiresAfter)
}