1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00
sap-jenkins-library/vars/detectExecuteScan.groovy
Oliver Nocon 8e74952166
Switch Detect scan to golang implementation (#1673)
* Switch Detect scan to golang implementation

* update workingDir

* use universal container as default

* Switch to official curl image

* fix code climate issue

* switch default image

* update docker options

* update CommonStepsTest

* remove invalid groovy test

* clean up defaults

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2020-06-16 17:21:59 +02:00

12 lines
351 B
Groovy

import groovy.transform.Field
@Field String STEP_NAME = getClass().getName()
@Field String METADATA_FILE = 'metadata/detect.yaml'
void call(Map parameters = [:]) {
List credentials = [
[type: 'token', id: 'detectTokenCredentialsId', env: ['PIPER_apiToken']]
]
piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials)
}