1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-02-13 14:00:29 +02:00

general config key for step healthCheckExecute

This commit is contained in:
Marcus Holl 2018-10-25 13:52:56 +02:00
parent 8a2fabf6d9
commit 0013c5db0e

View File

@ -3,10 +3,14 @@ import com.sap.piper.Utils
import groovy.transform.Field import groovy.transform.Field
@Field String STEP_NAME = 'healthExecuteCheck' @Field String STEP_NAME = 'healthExecuteCheck'
@Field Set GENERAL_CONFIG_KEYS = STEP_CONFIG_KEYS
@Field Set STEP_CONFIG_KEYS = [ @Field Set STEP_CONFIG_KEYS = [
'healthEndpoint', 'healthEndpoint',
'testServerUrl' 'testServerUrl'
] ]
@Field Set PARAMETER_KEYS = STEP_CONFIG_KEYS @Field Set PARAMETER_KEYS = STEP_CONFIG_KEYS
void call(Map parameters = [:]) { void call(Map parameters = [:]) {
@ -15,7 +19,7 @@ void call(Map parameters = [:]) {
// load default & individual configuration // load default & individual configuration
Map config = ConfigurationHelper.newInstance(this) Map config = ConfigurationHelper.newInstance(this)
.loadStepDefaults() .loadStepDefaults()
.mixinGeneralConfig(script.commonPipelineEnvironment, STEP_CONFIG_KEYS) .mixinGeneralConfig(script.commonPipelineEnvironment, GENERAL_CONFIG_KEYS)
.mixinStepConfig(script.commonPipelineEnvironment, STEP_CONFIG_KEYS) .mixinStepConfig(script.commonPipelineEnvironment, STEP_CONFIG_KEYS)
.mixinStageConfig(script.commonPipelineEnvironment, parameters.stageName?:env.STAGE_NAME, STEP_CONFIG_KEYS) .mixinStageConfig(script.commonPipelineEnvironment, parameters.stageName?:env.STAGE_NAME, STEP_CONFIG_KEYS)
.mixin(parameters, PARAMETER_KEYS) .mixin(parameters, PARAMETER_KEYS)