From a4df8bc246ac78d3e80edbfd8d7d0dad8308b1cb Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sat, 21 Apr 2018 15:15:30 +0200 Subject: 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 --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 66445c695..af7968e71 100644 --- 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}`" } } -- cgit v1.2.3-70-g09d2