Skip to content

Commit

Permalink
only docker_pull when not on a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Toby Bellwood committed Oct 1, 2021
1 parent c161339 commit 3dcd65b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,18 @@ pipeline {
sh script: "docker image prune -af", label: "Pruning images"
}
}
stage ('build images') {
stage ('refresh upstream images') {
when {
not {
buildingTag()
}
}
steps {
sh script: "make -O -j$NPROC docker_pull", label: "Ensuring fresh upstream images"
}
}
stage ('build images') {
steps {
sh script: "make -O -j$NPROC build SCAN_IMAGES=true", label: "Building images"
}
}
Expand Down

0 comments on commit 3dcd65b

Please sign in to comment.