Set buildresult on the build before invoking plugins.

Plugins might use buildresult so set it before invoking plugins
Merge branch 'master' of github.com:groupon/DotCi