Permalink
Browse files

[FIXED JENKINS-47106] Support alwaysPull in the top level agent section

  • Loading branch information...
segevfiner committed Mar 9, 2018
1 parent ba69e6c commit 5c4946495236afe8c778b9662ffd754923a728e5
@@ -39,7 +39,7 @@ class DockerPipelineScript extends AbstractDockerPipelineScript<DockerPipeline>
@Override
Closure runImage(Closure body) {
return {
if (!Utils.withinAStage()) {
if (!Utils.withinAStage() && describable.alwaysPull) {
script.stage(SyntheticStageNames.agentSetup()) {
try {
script.getProperty("docker").image(describable.image).pull()
@@ -63,4 +63,4 @@ class DockerPipelineScript extends AbstractDockerPipelineScript<DockerPipeline>
}
}
}
}
}

0 comments on commit 5c49464

Please sign in to comment.