2020-04-01 11:45:31 +02:00
|
|
|
import com.sap.piper.PiperGoUtils
|
2019-12-02 15:02:51 +02:00
|
|
|
import com.sap.piper.Utils
|
|
|
|
import groovy.transform.Field
|
|
|
|
|
|
|
|
import static com.sap.piper.Prerequisites.checkScript
|
|
|
|
|
2020-04-01 11:45:31 +02:00
|
|
|
@Field String STEP_NAME = getClass().getName()
|
|
|
|
@Field String METADATA_FILE = 'metadata/cloudFoundryCreateServiceKey.yaml'
|
2019-12-02 15:02:51 +02:00
|
|
|
|
|
|
|
void call(Map parameters = [:]) {
|
2020-04-01 11:45:31 +02:00
|
|
|
List credentials = [
|
|
|
|
[type: 'usernamePassword', id: 'cfCredentialsId', env: ['PIPER_username', 'PIPER_password']]
|
|
|
|
]
|
2020-04-03 13:23:44 +02:00
|
|
|
piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials)
|
2019-12-02 15:02:51 +02:00
|
|
|
}
|