mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-11-28 08:49:44 +02:00
Docker execution - make sure that script is passed (#403)
This commit is contained in:
parent
2881877322
commit
90765697aa
@ -70,7 +70,7 @@ void call(Map parameters = [:]) {
|
||||
} finally {
|
||||
sh "cat 'TEST-${config.testPackage}.tap'"
|
||||
if (config.outputFormat == 'junit') {
|
||||
dockerExecute(dockerImage: config.dockerImage, dockerWorkspace: config.dockerWorkspace, stashContent: config.stashContent) {
|
||||
dockerExecute(script: script, dockerImage: config.dockerImage, dockerWorkspace: config.dockerWorkspace, stashContent: config.stashContent) {
|
||||
sh "npm install tap-xunit -g"
|
||||
sh "cat 'TEST-${config.testPackage}.tap' | tap-xunit --package='${config.testPackage}' > TEST-${config.testPackage}.xml"
|
||||
}
|
||||
|
@ -62,6 +62,7 @@ void call(Map parameters = [:]) {
|
||||
variable: 'token'
|
||||
)]) {
|
||||
dockerExecute(
|
||||
script: script,
|
||||
dockerImage: config.dockerImage,
|
||||
stashContent: config.stashContent,
|
||||
dockerEnvVars: ['SNYK_TOKEN': token]
|
||||
|
Loading…
Reference in New Issue
Block a user