1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-18 05:18:24 +02:00

Merge pull request #342 from SAP/healthCheck-patch

add telemetry to healthExecuteCheck
This commit is contained in:
Marcus Holl 2018-10-17 09:45:55 +02:00 committed by GitHub
commit c3d8ad7926
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +1,10 @@
import com.sap.piper.ConfigurationHelper
import com.sap.piper.Utils
import groovy.transform.Field
@Field String STEP_NAME = 'healthExecuteCheck'
@Field Set STEP_CONFIG_KEYS = [
'healthEndpoint',
'healthEndpoint',
'testServerUrl'
]
@Field Set PARAMETER_KEYS = STEP_CONFIG_KEYS
@ -22,6 +22,8 @@ void call(Map parameters = [:]) {
.withMandatoryProperty('testServerUrl')
.use()
new Utils().pushToSWA([step: STEP_NAME], config)
def checkUrl = config.testServerUrl
if(config.healthEndpoint){
if(!checkUrl.endsWith('/'))