1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00

Fix imagePullPolicy always being IfNotPresent when executing single container (#834)

* Update dockerExecuteOnKubernetes.groovy

* Update dockerExecuteOnKubernetes.groovy
This commit is contained in:
Hans Schulz 2019-08-21 15:04:20 +02:00 committed by Marcus Holl
parent d2d4232883
commit 8cb5779f5d

View File

@ -156,8 +156,8 @@ void call(Map parameters = [:], body) {
if (!parameters.containerMap) {
configHelper.withMandatoryProperty('dockerImage')
config.containerName = 'container-exec'
config.containerMap = ["${config.get('dockerImage')}": config.containerName]
config.containerCommands = config.containerCommand ? ["${config.get('dockerImage')}": config.containerCommand] : null
config.containerMap = [(config.get('dockerImage')): config.containerName]
config.containerCommands = config.containerCommand ? [(config.get('dockerImage')): config.containerCommand] : null
}
executeOnPod(config, utils, body)
}