mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
Add stage defaults (#2841)
* Add stage defaults * Adapt defaults * Change default file * Rename config files * Add defaults for Build stage * Change and escape cfServiceKeyConfig * Remove service key config * Fix typo * Change quotes * Add default for Publish * Add cfDeleteServicesKeys to defaults
This commit is contained in:
parent
f63ac3bba0
commit
ccdedd4599
@ -0,0 +1,46 @@
|
||||
stages:
|
||||
Init:
|
||||
ordinal: 1
|
||||
|
||||
'Initial Checks':
|
||||
ordinal: 10
|
||||
|
||||
'Prepare System':
|
||||
ordinal: 20
|
||||
cfService: 'abap'
|
||||
cfServicePlan: 'standard'
|
||||
abapSystemIsDevelopmentAllowed: 'false'
|
||||
abapSystemSizeOfPersistence: 4
|
||||
abapSystemSizeOfRuntime: 1
|
||||
|
||||
'Clone Repositories':
|
||||
ordinal: 30
|
||||
|
||||
ATC:
|
||||
ordinal: 40
|
||||
|
||||
Build:
|
||||
ordinal: 50
|
||||
cfServiceKeyName: 'sap_com_0582'
|
||||
cfServiceKeyConfig: '{"scenario_id":"SAP_COM_0582","type":"basic"}'
|
||||
|
||||
'Integration Tests':
|
||||
ordinal: 60
|
||||
cfService: 'abap'
|
||||
cfServicePlan: 'saas_oem'
|
||||
abapSystemIsDevelopmentAllowed: 'false'
|
||||
abapSystemSizeOfPersistence: 4
|
||||
abapSystemSizeOfRuntime: 1
|
||||
confirmDeletion: 'true'
|
||||
includeAddon: 'true'
|
||||
|
||||
Confirm:
|
||||
ordinal: 70
|
||||
|
||||
Publish:
|
||||
ordinal: 80
|
||||
targetVectorScope: 'P'
|
||||
|
||||
Post:
|
||||
ordinal: 90
|
||||
cfDeleteServiceKeys: true
|
@ -1,30 +0,0 @@
|
||||
stages:
|
||||
Init:
|
||||
ordinal: 1
|
||||
|
||||
'Initial Checks':
|
||||
ordinal: 10
|
||||
|
||||
'Prepare System':
|
||||
ordinal: 20
|
||||
|
||||
'Clone Repositories':
|
||||
ordinal: 30
|
||||
|
||||
ATC:
|
||||
ordinal: 40
|
||||
|
||||
Build:
|
||||
ordinal: 50
|
||||
|
||||
'Integration Tests':
|
||||
ordinal: 60
|
||||
|
||||
Confirm:
|
||||
ordinal: 70
|
||||
|
||||
Publish:
|
||||
ordinal: 80
|
||||
|
||||
Post:
|
||||
ordinal: 90
|
@ -8,7 +8,7 @@ void call(parameters) {
|
||||
|
||||
stage('Init') {
|
||||
steps {
|
||||
abapEnvironmentPipelineStageInit script: parameters.script, customDefaults: ['com.sap.piper/pipeline/abapStageOrdinals.yml'].plus(parameters.customDefaults ?: [])
|
||||
abapEnvironmentPipelineStageInit script: parameters.script, customDefaults: ['com.sap.piper/pipeline/abapEnvironmentPipelineStageDefaults.yml'].plus(parameters.customDefaults ?: [])
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -25,8 +25,8 @@ void call(Map parameters = [:]) {
|
||||
// load default & individual configuration
|
||||
Map config = ConfigurationHelper.newInstance(this)
|
||||
.loadStepDefaults()
|
||||
.addIfEmpty('stageConfigResource', 'com.sap.piper/pipeline/abapStageDefaults.yml')
|
||||
.addIfEmpty('stashSettings', 'com.sap.piper/pipeline/abapStashSettings.yml')
|
||||
.addIfEmpty('stageConfigResource', 'com.sap.piper/pipeline/abapEnvironmentPipelineStages.yml')
|
||||
.addIfEmpty('stashSettings', 'com.sap.piper/pipeline/abapEnvironmentPipelineStashSettings.yml')
|
||||
.withMandatoryProperty('stageConfigResource')
|
||||
.use()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user