The determine-email-body script would only look at the previous commit's
status to determine whether to send a success email or not. If no status
was found (this happens when commits are pushed close to each other and CI
only runs the latest one), it would send a successful email even if the last
CI run was successful.
Due to timeouts while distributing release artifacts,
this commit uses the async mode for distribution.
Before syncing to maven central, we need to check if all the artifacts
have been published to Bintray. This is done by hitting the Bintray API
till we get the version or until a timeout is reached.
Closes gh-12292