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:
parent
d2d4232883
commit
8cb5779f5d
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user