Skip to content

Commit

Permalink
Add hostname information at exit (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Apr 19, 2016
1 parent 1c2f481 commit 37e26d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aliBuild
Original file line number Diff line number Diff line change
Expand Up @@ -1260,16 +1260,18 @@ if __name__ == "__main__":
else:
err = execute("/bin/bash -e -x %s/build.sh 2>&1" % scriptDir)

dieOnError(err, format("Error while executing %(sd)s/build.sh\n"
dieOnError(err, format("Error while executing %(sd)s/build.sh on `%(h)s'.\n"
"Log can be found in %(w)s/BUILD/%(p)s-latest/log",
h=socket.gethostname(),
sd=scriptDir,
w=abspath(args.workDir),
p=spec["package"]))

syncHelper.syncToRemote(p, spec)
info(format("Build successfully completed. "
info(format("Build successfully completed on `%(h)s'.\n"
"Your software installation is at:"
"\n\n%(wp)s",
h=socket.gethostname(),
wp=abspath(join(args.workDir, args.architecture))))
for x in develPkgs:
info(format("\nBuild directory for package %(p)s is %(w)s/BUILD/%(p)s-latest/%(p)s",
Expand Down

0 comments on commit 37e26d0

Please sign in to comment.