# HG changeset patch # User Patric Stout # Date 2018-04-21 13:15:30 # Node ID 1c6c149482bfdda6c4b47ed76fcd0b41a3c7c915 # Parent 2a1d6ae768aed4609031bd70f60c8c812c5b8805 Change: fail in same step as the reason for failing is in CI result This makes it easier for people to understand what went wrong diff --git a/Jenkinsfile b/Jenkinsfile --- a/Jenkinsfile +++ b/Jenkinsfile @@ -34,8 +34,7 @@ def generateCI(display_name, image_name) docker.image("${image_name}").pull() docker.image("${image_name}").withRun("--volumes-from ${hostname} --workdir " + pwd()) { c -> - sh "docker logs --follow ${c.id}" - sh "exit `docker wait ${c.id}`" + sh "docker logs --follow ${c.id}; exit `docker wait ${c.id}`" } }