Skip to content

Commit

Permalink
[FIXED JENKINS-46277] Do a pull for stage-level docker agent too
Browse files Browse the repository at this point in the history
  • Loading branch information
abayer committed Aug 17, 2017
1 parent 10f7c8e commit 4a1df3d
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -50,6 +50,9 @@ public class DockerPipelineScript extends AbstractDockerPipelineScript<DockerPip
}
}
try {
if (Utils.withinAStage()) {
script.getProperty("docker").image(describable.image).pull()
}
script.getProperty("docker").image(describable.image).inside(describable.args, {
body.call()
})
Expand Down

0 comments on commit 4a1df3d

Please sign in to comment.