You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/03/27 15:44:41 UTC

[GitHub] [incubator-mxnet] jlcontreras commented on a change in pull request #14530: Added repeats for github status updates

jlcontreras commented on a change in pull request #14530: Added repeats for github status updates
URL: https://github.com/apache/incubator-mxnet/pull/14530#discussion_r269631977
 
 

 ##########
 File path: ci/Jenkinsfile_utils.groovy
 ##########
 @@ -186,6 +186,42 @@ def update_github_commit_status(state, message) {
     context = get_github_context()
     echo "context=${context}"
 
+    echo "sending the github status 1..."
 
 Review comment:
   Not familiar with groovy, but wouldn't a loop work here? Something like
   
   ```suggestion
   for (int i = 0; i <3; i++) {
      echo String.format("sending the github status %d...", i+1)
      
      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(i < 2){
           sleep 1
       }  
   }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services