1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-03-05 15:15:44 +02:00

Debug config keys in general section (#3785)

* Make config keys available in general

* Test

* Log Formatting

* Fix

* Remove echo

* Dashed length

* Add comment

* revert changes
This commit is contained in:
Daniel Mieg 2022-05-19 14:18:14 +02:00 committed by GitHub
parent 7748e81b59
commit 1d850c0acc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View File

@ -5,8 +5,7 @@ import com.sap.piper.ConfigurationHelper
import static com.sap.piper.Prerequisites.checkScript
@Field String STEP_NAME = getClass().getName()
@Field Set GENERAL_CONFIG_KEYS = []
@Field STAGE_STEP_KEYS = [
@Field Set GENERAL_CONFIG_KEYS = [
/** Creates a SAP Cloud Platform ABAP Environment system via the cloud foundry command line interface */
'abapEnvironmentCreateSystem',
/** Deletes a SAP Cloud Platform ABAP Environment system via the cloud foundry command line interface */
@ -16,7 +15,8 @@ import static com.sap.piper.Prerequisites.checkScript
/** If set to true, the system is never deleted */
'debug'
]
@Field Set STEP_CONFIG_KEYS = GENERAL_CONFIG_KEYS.plus(STAGE_STEP_KEYS)
@Field Set STAGE_STEP_KEYS = GENERAL_CONFIG_KEYS
@Field Set STEP_CONFIG_KEYS = STAGE_STEP_KEYS
@Field Set PARAMETER_KEYS = STEP_CONFIG_KEYS
/**
* This stage creates a system for Integration Tests. The (custom) tests themselves can be added via a stage extension.

View File

@ -4,8 +4,7 @@ import com.sap.piper.ConfigurationHelper
import static com.sap.piper.Prerequisites.checkScript
@Field String STEP_NAME = getClass().getName()
@Field Set GENERAL_CONFIG_KEYS = []
@Field STAGE_STEP_KEYS = [
@Field Set GENERAL_CONFIG_KEYS = [
/** Deletes a SAP Cloud Platform ABAP Environment instance via the cloud foundry command line interface */
'cloudFoundryDeleteService',
/** If set to true, a confirmation is required to delete the system in case the pipeline was not successful */
@ -13,7 +12,8 @@ import static com.sap.piper.Prerequisites.checkScript
/** If set to true, the system is never deleted */
'debug'
]
@Field Set STEP_CONFIG_KEYS = GENERAL_CONFIG_KEYS.plus(STAGE_STEP_KEYS)
@Field Set STAGE_STEP_KEYS = GENERAL_CONFIG_KEYS
@Field Set STEP_CONFIG_KEYS = STAGE_STEP_KEYS
@Field Set PARAMETER_KEYS = STEP_CONFIG_KEYS
/**
* This stage cleans up the ABAP Environment Pipeline run
@ -35,7 +35,6 @@ void call(Map parameters = [:]) {
piperStageWrapper (script: script, stageName: stageName, stashContent: [], stageLocking: false) {
if(parameters.script.commonPipelineEnvironment.configuration.runStage?.get("Prepare System")) {
if (config.confirmDeletion && script.currentBuild.result != 'SUCCESS') {
input message: "Pipeline status is not successful. Once you proceed, the system will be deleted."
}