Changeset - r22824:1c6c149482bf
[Not reviewed]
master
0 1 0
Patric Stout - 6 years ago 2018-04-21 13:15:30
truebrain@openttd.org
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
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
Jenkinsfile
Show inline comments
 
@@ -31,14 +31,13 @@ def generateCI(display_name, image_name)
 
        try {
 
            dir("${display_name}") {
 
                unstash "source"
 

	
 
                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}`"
 
                }
 
            }
 

	
 
            githubNotify context: 'openttd/' + display_name, description: 'The commit looks good', status: 'SUCCESS'
 
        }
 
        catch (error) {
0 comments (0 inline, 0 general)