-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile_pipeline_test
41 lines (35 loc) · 1.16 KB
/
Jenkinsfile_pipeline_test
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
// ______ _ _ _ _____
// | _ \ | \ | | | | / __ \
// | | | |___ | \| | ___ | |_ | / \/ ___ _ __ _ _
// | | | / _ \ | . ` |/ _ \| __| | | / _ \| '_ \| | | |
// | |/ / (_) | | |\ | (_) | |_ | \__/\ (_) | |_) | |_| |
// |___/ \___/ \_| \_/\___/ \__| \____/\___/| .__/ \__, |
// | | __/ |
// |_| |___/
//
// THIS PIPELINE IS FOR TESTING SHARED PIPELINE CODE ONLY
properties([
parameters([
string(name: 'LIB_VERSION', defaultValue: 'master', description: 'Branch name of pipeline library to use')
])
])
library "Infrastructure@${params.LIB_VERSION}"
def type = "java"
def product = "apple"
def app = "recipe-backend"
def expiresAfter = "3000-01-01"
static LinkedHashMap<String, Object> secret(String secretName, String envVar) {
[ $class: 'AzureKeyVaultSecret',
secretType: 'Secret',
name: secretName,
version: '',
envVariable: envVar
]
}
withPipeline(type, product, app) {
// never skip stages when testing the pipeline
env.NO_SKIP_IMG_BUILD = 'true'
enablePerformanceTest()
expires(expiresAfter)
}