• Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • github-plugin

          [JENKINS-32639] Github commit status doesn't work

          You have different sha on screenshot. This plugin can set commit status only on commits in branches of this repo. So it didn't work on PRs without additional magic

          Kirill Merkushev added a comment - You have different sha on screenshot. This plugin can set commit status only on commits in branches of this repo. So it didn't work on PRs without additional magic

          Sorry my mistake. Github plugin in "Console Output" displays link to merge on github instead of github commit.

          Console Output:
          ...
          Setting commit status on GitHub for https://github.com/SmartCrowd/Monitoring/commit/30b42207656fd2341276e916cad73b9181b4f9cc
          ...

          Merge on github:

          Commit in this merge on github:

          System Log Jenkins:

          jan 28, 2016 10:00:02 AM INFO org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber onEvent
          Received POST for https://github.com/Company/Repository
          jan 28, 2016 10:00:02 AM INFO org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber$1 run
          Poked Jenkins-Build-Name
          jan 28, 2016 10:00:02 AM INFO org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber$1 run
          Poked Server-Name
          jan 28, 2016 10:01:40 AM INFO org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber onEvent
          Received POST for https://github.com/Company/Repository
          jan 28, 2016 10:01:40 AM INFO org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber$1 run
          Poked Jenkins-Build-Name
          jan 28, 2016 10:01:40 AM INFO org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber$1 run
          Poked Server-Name
          jan 28, 2016 10:01:42 AM INFO com.cloudbees.jenkins.GitHubPushTrigger$1 run
          SCM changes detected in Jenkins-Build-Name. Triggering #53
          jan 28, 2016 10:02:12 AM INFO hudson.model.Run execute
          Jenkins-Build-Name #53 main build action completed: SUCCESS

          Alexey Belaytzev added a comment - Sorry my mistake. Github plugin in "Console Output" displays link to merge on github instead of github commit. Console Output: ... Setting commit status on GitHub for https://github.com/SmartCrowd/Monitoring/commit/30b42207656fd2341276e916cad73b9181b4f9cc ... Merge on github: Commit in this merge on github: System Log Jenkins: jan 28, 2016 10:00:02 AM INFO org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber onEvent Received POST for https://github.com/Company/Repository jan 28, 2016 10:00:02 AM INFO org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber$1 run Poked Jenkins-Build-Name jan 28, 2016 10:00:02 AM INFO org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber$1 run Poked Server-Name jan 28, 2016 10:01:40 AM INFO org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber onEvent Received POST for https://github.com/Company/Repository jan 28, 2016 10:01:40 AM INFO org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber$1 run Poked Jenkins-Build-Name jan 28, 2016 10:01:40 AM INFO org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber$1 run Poked Server-Name jan 28, 2016 10:01:42 AM INFO com.cloudbees.jenkins.GitHubPushTrigger$1 run SCM changes detected in Jenkins-Build-Name. Triggering #53 jan 28, 2016 10:02:12 AM INFO hudson.model.Run execute Jenkins-Build-Name #53 main build action completed: SUCCESS

          All your logs provided is about hooks, not the status.
          You can check that GH set status on commit with GH status api with something like curl or directly in the browser.

          Can't help with current info provided.

          Kirill Merkushev added a comment - All your logs provided is about hooks, not the status. You can check that GH set status on commit with GH status api with something like curl or directly in the browser. Can't help with current info provided.

          Alexey Belaytzev added a comment - - edited

          I don`t now what happend, must be GH repair bug, but all works fine today. I never change in build jenkins.

          Alexey Belaytzev added a comment - - edited I don`t now what happend, must be GH repair bug, but all works fine today. I never change in build jenkins.

            lanwen Kirill Merkushev
            tilorn Alexey Belaytzev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: