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()
|
2021-11-15 15:20:20 +02:00
|
|
|
@Field String METADATA_FILE = 'metadata/protecodeExecuteScan.yaml'
|
2020-02-06 17:16:34 +02:00
|
|
|
|
2021-11-15 15:20:20 +02:00
|
|
|
//Metadata maintained in file project://resources/metadata/protecodeExecuteScan.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 14:57:11 +02:00
|
|
|
[type: 'file', id: 'dockerConfigJsonCredentialsId', env: ['PIPER_dockerConfigJSON']],
|
2020-08-07 15:24:54 +02:00
|
|
|
]
|
|
|
|
piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials)
|
2020-05-05 15:21:59 +02:00
|
|
|
}
|