2020-02-06 17:16:34 +02:00
|
|
|
import groovy.transform.Field
|
|
|
|
|
|
|
|
import static com.sap.piper.Prerequisites.checkScript
|
|
|
|
|
|
|
|
@Field String STEP_NAME = getClass().getName()
|
|
|
|
@Field String METADATA_FILE = 'metadata/protecode.yaml'
|
|
|
|
|
2020-08-07 15:24:54 +02:00
|
|
|
//Metadata maintained in file project://resources/metadata/protecode.yaml
|
2020-02-06 17:16:34 +02:00
|
|
|
|
2020-08-07 15:24:54 +02:00
|
|
|
void call(Map parameters = [:]) {
|
|
|
|
final script = checkScript(this, parameters) ?: this
|
2020-02-06 17:16:34 +02:00
|
|
|
|
2020-08-07 15:24:54 +02:00
|
|
|
List credentials = [
|
|
|
|
[type: 'usernamePassword', id: 'protecodeCredentialsId', env: ['PIPER_username', 'PIPER_password']],
|
2020-08-12 11:31:09 +02:00
|
|
|
[type: 'file', id: 'dockerConfigJsonCredentialsId', env: ['DOCKER_CONFIG']],
|
2020-08-07 15:24:54 +02:00
|
|
|
]
|
|
|
|
piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials)
|
2020-05-05 15:21:59 +02:00
|
|
|
}
|