Report result of the build

Instead of reporting if the build was successful or not, report the
actual result state from Jenkins.
Slightly better log when sending data to Elasticsearch fails