Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit 882d113

Browse files
author
s4sdkJenkinsBot
committed
Merge branch 'master' into release
2 parents 829548b + 05d8de1 commit 882d113

File tree

7 files changed

+15
-47
lines changed

7 files changed

+15
-47
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# Pipeline Library for the SAP Cloud SDK
1+
# Pipeline Library for the SAP Cloud SDK - DEPRECATED!
22

3+
**WARNING:** This repository should not be used anymore. Instead, we recommend using the [General Purpose Pipeline of project "Piper"](https://sap.github.io/jenkins-library/stages/introduction/). The reasoning as well as further information how to adopt the General Purpose Pipeline are described in our [guide](https://github.com/SAP/cloud-s4-sdk-pipeline/blob/master/gpp-guide.md).
34

45
## Description
56

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ test {
4747

4848
task downloadPiper(type: Download) {
4949

50-
src 'https://github.com/SAP/jenkins-library/releases/download/v1.99.0/jenkins-library.jar'
50+
src 'https://github.com/SAP/jenkins-library/releases/download/v1.105.0/jenkins-library.jar'
5151

5252
dest 'libs/jenkins-library.jar'
5353
onlyIfModified true

resources/default_s4_pipeline_environment.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ steps:
8888
failThreshold: 100
8989
unstableThreshold: 90
9090

91+
gatlingExecuteTests:
92+
pomPath: 'performance-tests/pom.xml'
93+
stashContent: []
94+
9195
cloudFoundryDeploy:
9296
dockerImage: ppiper/cf-cli:v2
9397
keepOldInstance: true

vars/checkGatling.groovy

Lines changed: 0 additions & 36 deletions
This file was deleted.

vars/createHdiContainer.groovy

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def call(Map parameters = [:], Closure body) {
4444
echo "Creating a new HDI container ${hdiContainerName}"
4545
try {
4646
createContainer(script, configuration, hdiContainerName)
47-
initializeDatabase(script, hdiContainerName)
47+
initializeDatabase(script)
4848
body()
4949
} finally {
5050
deleteContainer(script, configuration, hdiContainerName)
@@ -156,11 +156,9 @@ private createContainer(Script script, Map configuration, String hdiContainer) {
156156
}
157157
}
158158

159-
private initializeDatabase(Script script, String hdiContainer) {
160-
dir('db') {
161-
echo "Deploying content"
162-
npmExecuteScripts script: script, runScripts: ['start'], scriptOptions: ['--exit'], virtualFrameBuffer: false
163-
}
159+
private initializeDatabase(Script script) {
160+
echo "Deploying content"
161+
npmExecuteScripts script: script, buildDescriptorList: ['db/package.json'], runScripts: ['start'], scriptOptions: ['--exit'], virtualFrameBuffer: false
164162
}
165163

166164
private deleteContainer(Script script, Map configuration, String hdiContainerName) {

vars/loadPiper.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def call(Map parameters = [:]) {
55
Script script = parameters.script
66

77
// If you change the version please also update the version in build.gradle. They must always be at the same commit/tag/version.
8-
String piperOsVersion = 'v1.99.0'
8+
String piperOsVersion = 'v1.105.0'
99

1010
String piperIdentifier = 'None'
1111

vars/stagePerformanceTests.groovy

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ def call(Map parameters = [:]) {
1919
checkJMeter script: script, reportDirectory: performanceTestReports
2020
}
2121

22-
if (ConfigurationLoader.stepConfiguration(script, 'checkGatling')?.enabled) {
23-
checkGatling script: script, appUrls: stageConfiguration.appUrls
22+
def gatlingConfig = ConfigurationLoader.stepConfiguration(script, 'gatlingExecuteTests')
23+
if (gatlingConfig && gatlingConfig.enabled != false) {
24+
gatlingExecuteTests script: script
2425
}
2526
} else {
2627
echo "Performance tests have not been enabled. Skipping the stage."

0 commit comments

Comments
 (0)