Sync status json after every build
dfdd2913 the logic to only write the status json upon build but before the build happens. This makes sure that it is written after a successful build or exception.
dfdd2913 the logic to only write the status json upon build but before the build happens. This makes sure that it is written after a successful build or exception.