write build.xml at the end. write status (success/fail)