Skip to content

Commit

Permalink
Change: fail in same step as the reason for failing is in CI result
Browse files Browse the repository at this point in the history
This makes it easier for people to understand what went wrong
  • Loading branch information
TrueBrain committed Apr 21, 2018
1 parent 4d53969 commit a4df8bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Jenkinsfile
Expand Up @@ -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}`"
}
}

Expand Down

0 comments on commit a4df8bc

Please sign in to comment.