mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-11-24 08:32:32 +02:00
d7985dd1b5
This change enables the setupCommonPipelineEnvironment step to handle custom default configurations defined in customDefaults parameter of the project configuration. Previously, only the getConfig Go step was able to incorporate custom default configurations. Update documentation on custom defaults and sharing between projects. Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com>
23 lines
681 B
Groovy
23 lines
681 B
Groovy
import com.sap.piper.GenerateDocumentation
|
|
import com.sap.piper.DefaultValueCache
|
|
|
|
import groovy.transform.Field
|
|
|
|
import static com.sap.piper.Prerequisites.checkScript
|
|
|
|
@Field STEP_NAME = getClass().getName()
|
|
|
|
@Field Set GENERAL_CONFIG_KEYS = []
|
|
@Field Set STEP_CONFIG_KEYS = []
|
|
@Field Set PARAMETER_KEYS = []
|
|
|
|
/**
|
|
* Loads the pipeline library default values from the file `resources/default_pipeline_environment.yml`.
|
|
* Afterwards the values can be loaded by the method: `ConfigurationLoader.defaultStepConfiguration`
|
|
*/
|
|
@GenerateDocumentation
|
|
void call(Map parameters = [:]) {
|
|
def script = checkScript(this, parameters)
|
|
DefaultValueCache.prepare(script, parameters)
|
|
}
|