This repository was archived by the owner on May 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathPipelineScript.groovy
More file actions
45 lines (45 loc) · 3.46 KB
/
PipelineScript.groovy
File metadata and controls
45 lines (45 loc) · 3.46 KB
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
pipeline {
agent any
stages{
stage('ABAP Unit Test'){
steps{
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'ID OF YOUR CREDENTIALS', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) {
sh '''
newman run https://raw.githubusercontent.com/lechnerc77/ABAP_CI_PIPELINE_BASE/master/01_ABAP_Unit/abap_unit.postman_collection.json -k --bail --environment https://raw.githubusercontent.com/lechnerc77/ABAP_CI_PIPELINE_BASE/master/01_ABAP_Unit/abap_unit.postman_environment.json -k --timeout-request 120000 --global-var "username=$USERNAME" --global-var "password=$PASSWORD" --global-var "package=NAME OF YOUR PROJECT/PACKAGE"
'''
}
}
}
stage('ABAP Test Coverage'){
steps{
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'ID OF YOUR CREDENTIALS', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) {
sh '''
newman run https://raw.githubusercontent.com/lechnerc77/ABAP_CI_PIPELINE_BASE/master/02_ABAP_Coverage/abap_coverage_analysis.postman_collection.json -k --bail --environment https://raw.githubusercontent.com/lechnerc77/ABAP_CI_PIPELINE_BASE/master/02_ABAP_Coverage/abap_coverage.postman_environment.json --timeout-request 120000 --global-var "username=$USERNAME" --global-var "password=$PASSWORD" --global-var "package=NAME OF YOUR PROJECT/PACKAGE"
'''
}
}
}
stage('ATC Checks'){
parallel{
stage('ATC Checks HANA Readiness - FUNCTIONAL_DB'){
steps{
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'ID OF YOUR CREDENTIALS', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) {
sh '''
newman run https://raw.githubusercontent.com/lechnerc77/ABAP_CI_PIPELINE_BASE/master/03_ATC_Checks/abap_atc.postman_collection.json -k --bail --environment https://raw.githubusercontent.com/lechnerc77/ABAP_CI_PIPELINE_BASE/master/03_ATC_Checks/abap_atc_funcdb.postman_environment.json --timeout-request 120000 --global-var "username=$USERNAME" --global-var "password=$PASSWORD" --global-var "package=NAME OF YOUR PROJECT/PACKAGE"
'''
}
}
}
stage('ATC Checks HANA Readiness - FUNCTIONAL_DB_ADDITION'){
steps{
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'ID OF YOUR CREDENTIALS', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) {
sh '''
newman run https://raw.githubusercontent.com/lechnerc77/ABAP_CI_PIPELINE_BASE/master/03_ATC_Checks/abap_atc.postman_collection.json -k --bail --environment https://raw.githubusercontent.com/lechnerc77/ABAP_CI_PIPELINE_BASE/master/03_ATC_Checks/abap_atc_funcdbadd.postman_environment.json --timeout-request 120000 --global-var "username=$USERNAME" --global-var "password=$PASSWORD" --global-var "package=NAME OF YOUR PROJECT/PACKAGE"
'''
}
}
}
}
}
}
}