2021-06-15 14:34:56 +02:00
|
|
|
import static com.sap.piper.Prerequisites.checkScript
|
|
|
|
|
|
|
|
import groovy.transform.Field
|
|
|
|
|
|
|
|
@Field def STEP_NAME = getClass().getName()
|
|
|
|
|
|
|
|
void call(Map parameters = [:]) {
|
|
|
|
final script = checkScript(this, parameters) ?: this
|
2021-06-16 18:04:37 +02:00
|
|
|
String piperGoPath = parameters?.piperGoPath ?: './piper'
|
2021-06-15 14:34:56 +02:00
|
|
|
def output = script.sh(returnStdout: true, script: "${piperGoPath} readPipelineEnv")
|
|
|
|
Map cpeMap = script.readJSON(text: output)
|
2021-06-16 18:04:37 +02:00
|
|
|
script?.commonPipelineEnvironment?.setCPEMap(script, cpeMap)
|
2021-06-15 14:34:56 +02:00
|
|
|
}
|