github.com/jaylevin/jenkins-library@v1.230.4/vars/detectExecuteScan.groovy (about) 1 import com.sap.piper.BuildTool 2 import com.sap.piper.DownloadCacheUtils 3 import groovy.transform.Field 4 5 import static com.sap.piper.Prerequisites.checkScript 6 7 @Field String STEP_NAME = getClass().getName() 8 @Field String METADATA_FILE = 'metadata/detectExecuteScan.yaml' 9 10 void call(Map parameters = [:]) { 11 final script = checkScript(this, parameters) ?: this 12 parameters = DownloadCacheUtils.injectDownloadCacheInParameters(script, parameters, BuildTool.MAVEN) 13 List credentials = [ 14 [type: 'token', id: 'detectTokenCredentialsId', env: ['PIPER_token']], 15 [type: 'token', id: 'githubTokenCredentialsId', env: ['PIPER_githubToken']] 16 ] 17 piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials) 18 }