2020-07-30 10:35:46 +02:00
|
|
|
import com.sap.piper.BuildTool
|
|
|
|
import com.sap.piper.DownloadCacheUtils
|
2019-05-08 11:36:01 +02:00
|
|
|
import groovy.transform.Field
|
|
|
|
|
2020-07-30 10:35:46 +02:00
|
|
|
import static com.sap.piper.Prerequisites.checkScript
|
|
|
|
|
2019-05-08 11:36:01 +02:00
|
|
|
@Field String STEP_NAME = getClass().getName()
|
2021-11-15 15:20:20 +02:00
|
|
|
@Field String METADATA_FILE = 'metadata/detectExecuteScan.yaml'
|
2019-05-08 11:36:01 +02:00
|
|
|
|
|
|
|
void call(Map parameters = [:]) {
|
2020-07-30 10:35:46 +02:00
|
|
|
final script = checkScript(this, parameters) ?: this
|
|
|
|
parameters = DownloadCacheUtils.injectDownloadCacheInParameters(script, parameters, BuildTool.MAVEN)
|
2020-06-16 17:21:59 +02:00
|
|
|
List credentials = [
|
2020-10-01 13:34:51 +02:00
|
|
|
[type: 'token', id: 'detectTokenCredentialsId', env: ['PIPER_token']]
|
2020-06-16 17:21:59 +02:00
|
|
|
]
|
|
|
|
piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials)
|
2019-05-08 11:36:01 +02:00
|
|
|
}
|