Skip to content

Commit

Permalink
Merge pull request #254 from segevfiner/jenkins-47106-top-level-agent…
Browse files Browse the repository at this point in the history
…-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 fa8ed8b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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()
Expand All @@ -63,4 +63,4 @@ class DockerPipelineScript extends AbstractDockerPipelineScript<DockerPipeline>
}
}
}
}
}

0 comments on commit fa8ed8b

Please sign in to comment.