Skip to content
Permalink
Browse files

Merge pull request #254 from segevfiner/jenkins-47106-top-level-agent…

…-local-image

[FIXED JENKINS-47106] Support alwaysPull in the top level agent section
  • Loading branch information...
abayer committed Apr 4, 2018
2 parents f5deef1 + 5c49464 commit fa8ed8bb0861220ff36b730656dc12701ba86ffd
@@ -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 fa8ed8b

Please sign in to comment.
You can’t perform that action at this time.