private void updateCommitStatus(@Nonnull AbstractBuild<?, ?> build, @Nonnull BuildListener listener) throws InterruptedException, IOException {
final String sha1 = ObjectId.toString(BuildDataHelper.getCommitSHA1(build));
for (GitHubRepositoryName name : GitHubRepositoryNameContributor.parseAssociatedNames(build.getProject())) {
for (GHRepository repository : name.resolve()) {
GHCommitState state;
String msg;
// We do not use `build.getDurationString()` because it appends 'and counting' (build is still running)
final String duration = Util.getTimeSpanString(System.currentTimeMillis() - build.getTimeInMillis());