Change: always pull latest image when running CI
This commit is contained in:
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
@@ -32,6 +32,7 @@ def generateCI(display_name, image_name) {
|
|||||||
dir("${display_name}") {
|
dir("${display_name}") {
|
||||||
unstash "source"
|
unstash "source"
|
||||||
|
|
||||||
|
docker.image("${image_name}").pull()
|
||||||
docker.image("${image_name}").withRun("--volumes-from ${hostname} --workdir " + pwd()) { c ->
|
docker.image("${image_name}").withRun("--volumes-from ${hostname} --workdir " + pwd()) { c ->
|
||||||
sh "docker logs --follow ${c.id}"
|
sh "docker logs --follow ${c.id}"
|
||||||
sh "exit `docker wait ${c.id}`"
|
sh "exit `docker wait ${c.id}`"
|
||||||
|
|||||||
Reference in New Issue
Block a user