mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
13 lines
573 B
Groovy
13 lines
573 B
Groovy
|
import groovy.transform.Field
|
||
|
|
||
|
@Field String STEP_NAME = getClass().getName()
|
||
|
@Field String METADATA_FILE = 'metadata/checkmarxOneExecuteScan.yaml'
|
||
|
|
||
|
//Metadata maintained in file project://resources/metadata/checkmarxoneExecuteScan.yaml
|
||
|
|
||
|
void call(Map parameters = [:]) {
|
||
|
List credentials = [[type: 'usernamePassword', id: 'checkmarxOneCredentialsId', env: ['PIPER_clientId', 'PIPER_clientSecret']],
|
||
|
[type: 'token', id: 'checkmarxOneAPIKey', env: ['PIPER_APIKey']]]
|
||
|
piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials, true)
|
||
|
}
|