-
Notifications
You must be signed in to change notification settings - Fork 38
/
Jenkinsfile
54 lines (46 loc) · 1.6 KB
/
Jenkinsfile
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
47
48
49
50
51
52
53
54
import jenkins.model.*
def GITURL = 'https://github.com/pacroy/abap-rest-api.git'
def BRANCH = 'master'
def PIPELINE_GITURL = 'https://github.com/pacroy/abap-ci-postman.git'
def PACKAGE = '''$REST_SIMPLE'''
def COVERAGE = 80
def VARIANT = "DEFAULT"
parallel (
"NPL":{
node {
def LABEL = "NPL"
def HOST = "vhcalnplci.dummy.nodomain"
def CREDENTIAL = "NPL"
git poll: true, branch: BRANCH, url: GITURL
stage('[' + LABEL + '] Preparation') {
deleteDir()
dir('sap-pipeline') {
bat "git clone " + PIPELINE_GITURL + " ."
}
}
def sap_pipeline = load "sap-pipeline/sap.groovy"
sap_pipeline.abap_unit(LABEL,HOST,CREDENTIAL,PACKAGE,COVERAGE)
sap_pipeline.abap_sci(LABEL,HOST,CREDENTIAL,PACKAGE,VARIANT)
sap_pipeline.sap_api_test(LABEL,HOST,CREDENTIAL)
}
}
/* Add more system as needed...
,"NPL":{
node {
def LABEL = "NPL"
def HOST = "vhcalnplci.dummy.nodomain"
def CREDENTIAL = "NPL"
git poll: true, branch: BRANCH, url: GITURL
stage('[' + LABEL + '] Preparation') {
deleteDir()
dir('sap-pipeline') {
bat "git clone " + PIPELINE_GITURL + " ."
}
}
def sap_pipeline = load "sap-pipeline/sap.groovy"
sap_pipeline.abap_unit(LABEL,HOST,CREDENTIAL,PACKAGE,COVERAGE)
sap_pipeline.abap_sci(LABEL,HOST,CREDENTIAL,PACKAGE,VARIANT)
sap_pipeline.sap_api_test(LABEL,HOST,CREDENTIAL)
}
} */
)