github.com/jaylevin/jenkins-library@v1.230.4/vars/protecodeExecuteScan.groovy (about) 1 import groovy.transform.Field 2 3 import static com.sap.piper.Prerequisites.checkScript 4 5 @Field String STEP_NAME = getClass().getName() 6 @Field String METADATA_FILE = 'metadata/protecodeExecuteScan.yaml' 7 8 //Metadata maintained in file project://resources/metadata/protecodeExecuteScan.yaml 9 10 void call(Map parameters = [:]) { 11 final script = checkScript(this, parameters) ?: this 12 13 List credentials = [ 14 [type: 'usernamePassword', id: 'protecodeCredentialsId', env: ['PIPER_username', 'PIPER_password']], 15 [type: 'file', id: 'dockerConfigJsonCredentialsId', env: ['PIPER_dockerConfigJSON']], 16 ] 17 piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials) 18 }