Properly stop making build server base image on failure
This commit is contained in:
parent
ce371d8b98
commit
adffec7364
@ -29,6 +29,7 @@ with open(os.path.join(serverdir, 'up.log'), 'w') as log:
|
|||||||
log.write('==stderr==\n' + err + '\n\n')
|
log.write('==stderr==\n' + err + '\n\n')
|
||||||
if returncode != 0:
|
if returncode != 0:
|
||||||
print "Failed to configure server"
|
print "Failed to configure server"
|
||||||
|
sys.exit(1)
|
||||||
print "Stopping build server VM"
|
print "Stopping build server VM"
|
||||||
vagrant(['halt'], serverdir)
|
vagrant(['halt'], serverdir)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user