mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
Log buildserver setup
This commit is contained in:
parent
80808133d4
commit
79d247d682
2 changed files with 4 additions and 2 deletions
1
buildserver/.gitignore
vendored
1
buildserver/.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
.vagrant
|
.vagrant
|
||||||
|
up.log
|
||||||
|
|
|
@ -24,10 +24,11 @@ if os.path.exists(boxfile):
|
||||||
vagrant(['halt'], serverdir)
|
vagrant(['halt'], serverdir)
|
||||||
print "Configuring build server VM"
|
print "Configuring build server VM"
|
||||||
returncode, out, err = vagrant(['up'], serverdir)
|
returncode, out, err = vagrant(['up'], serverdir)
|
||||||
|
with open(os.path.join(serverdir, 'up.log'), 'w') as log:
|
||||||
|
log.write('==stdout==\n' + out + '\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"
|
||||||
print out
|
|
||||||
print err
|
|
||||||
print "Stopping build server VM"
|
print "Stopping build server VM"
|
||||||
vagrant(['halt'], serverdir)
|
vagrant(['halt'], serverdir)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue