Skip to content

Commit

Permalink
[FIXED JENKINS-47106] Support alwaysPull in the top level agent section
Browse files Browse the repository at this point in the history
  • Loading branch information
segevfiner committed Mar 9, 2018
1 parent ba69e6c commit 5c49464
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 5c49464

Please sign in to comment.