Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42254

multibranch pipeline job notified by github, but repo scan finds "No changes detected"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • Jenkins ver. 2.32.2
      please see the attached file installed_plugins.xml for details about all the plugins

      Hi, i have a case where a jenkins multibranch build job was notified about a change, but did not detect the change and therefore did not build.
      The attached file github_webhook_payload.json contains the full payload that was send to jenkins.

      imho the most interesting part is this:

        "ref": "refs/heads/master",
        "before": "aac98c4d843ba4cf53b7fc375b7eb301337d65ec",
        "after": "9e25b9d14d2405e5b8c77d27d15e3ea7b19fa251",
      

      From this screenshot one can see that the request to jenkins was made at 20:33.

      The problem was that i assumed that the issue fix was build and pushed the issue forward.
      Then today, the dev got his issue back with "IT failed" and we found out, that it was only build this forenoon.

      When I opened https://jenkins.metasfresh.com/job/metasfresh-webui/indexing/events today, i found the following in the log:

      [Tue Feb 21 20:34:05 CET 2017] Received org.jenkinsci.plugins.github_branch_source.PushGHEventSubscriber$SCMHeadEventImpl UPDATED event from 192.30.252.42 ⇒ http://jenkins.metasfresh.com:47832/github-webhook/ with timestamp Tue Feb 21 20:34:00 CET 2017
      Connecting to https://api.github.com using metas-dev/******
      Looking up metasfresh/metasfresh-webui
      
        Getting remote branches...
      
          Checking branch master
            ‘Jenkinsfile’ found
          Met criteria
      No changes detected: master (still at aac98c4d843ba4cf53b7fc375b7eb301337d65ec)
      
      Done examining metasfresh/metasfresh-webui
      
      [Tue Feb 21 20:34:07 CET 2017] org.jenkinsci.plugins.github_branch_source.PushGHEventSubscriber$SCMHeadEventImpl UPDATED event from 192.30.252.42 ⇒ http://jenkins.metasfresh.com:47832/github-webhook/ with timestamp Tue Feb 21 20:34:00 CET 2017 processed in 2,5 sec
      

      I'm also attaching the job's config.xml file.

      Please let me know if i can provide further into.

      PS: I did not modify the jobs config, so i don't see a releation to issue 14855.

            stephenconnolly Stephen Connolly
            tobi42 Tobias Schoeneberg
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: