summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2018-04-21 15:15:30 +0200
committerPatric Stout <truebrain@openttd.org>2018-04-21 16:31:22 +0200
commita4df8bc246ac78d3e80edbfd8d7d0dad8308b1cb (patch)
tree52308b981bfab6975207211c16c7af9d4fb0d26d
parent4d5396980a8640aa6bd158a67e17433b06200a89 (diff)
downloadopenttd-a4df8bc246ac78d3e80edbfd8d7d0dad8308b1cb.tar.xz
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
-rw-r--r--Jenkinsfile3
1 files changed, 1 insertions, 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}`"
}
}