From 2960ed0a081099772866ff4044b648db755f9947 Mon Sep 17 00:00:00 2001 From: perdasilva Date: Fri, 27 Sep 2019 10:31:35 +0200 Subject: [PATCH] Removes git status update stop gap solution (#16285) --- ci/Jenkinsfile_utils.groovy | 34 +++++++++++++--------------------- 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/ci/Jenkinsfile_utils.groovy b/ci/Jenkinsfile_utils.groovy index ad8cd553df04..9f626a6cb83e 100644 --- a/ci/Jenkinsfile_utils.groovy +++ b/ci/Jenkinsfile_utils.groovy @@ -186,27 +186,19 @@ def update_github_commit_status(state, message) { context = get_github_context() echo "context=${context}" - // a few attempts need to be made: https://github.com/apache/incubator-mxnet/issues/11654 - for (int attempt = 1; attempt <= 3; attempt++) { - echo "Sending GitHub status attempt ${attempt}..." - - step([ - $class: 'GitHubCommitStatusSetter', - reposSource: [$class: "ManuallyEnteredRepositorySource", url: repoUrl], - contextSource: [$class: "ManuallyEnteredCommitContextSource", context: context], - commitShaSource: [$class: "ManuallyEnteredShaSource", sha: commitSha], - statusBackrefSource: [$class: "ManuallyEnteredBackrefSource", backref: "${env.RUN_DISPLAY_URL}"], - errorHandlers: [[$class: 'ShallowAnyErrorHandler']], - statusResultSource: [ - $class: 'ConditionalStatusResultSource', - results: [[$class: "AnyBuildResult", message: message, state: state]] - ] - ]) - - if (attempt <= 2) { - sleep 1 - } - } + echo "Publishing commit status..." + step([ + $class: 'GitHubCommitStatusSetter', + reposSource: [$class: "ManuallyEnteredRepositorySource", url: repoUrl], + contextSource: [$class: "ManuallyEnteredCommitContextSource", context: context], + commitShaSource: [$class: "ManuallyEnteredShaSource", sha: commitSha], + statusBackrefSource: [$class: "ManuallyEnteredBackrefSource", backref: "${env.RUN_DISPLAY_URL}"], + errorHandlers: [[$class: 'ShallowAnyErrorHandler']], + statusResultSource: [ + $class: 'ConditionalStatusResultSource', + results: [[$class: "AnyBuildResult", message: message, state: state]] + ] + ]) echo "Publishing commit status done."