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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Labels:
    • Environment:
      Jenkins ver. 2.32.2
      please see the attached file installed_plugins.xml for details about all the plugins
    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            src/test/java/com/cloudbees/hudson/plugins/folder/computed/ComputedFolderTest.java
            http://jenkins-ci.org/commit/cloudbees-folder-plugin/9f90a8fcf864d07922e3c42c55c796abd8e6303f
            Log:
            JENKINS-42254 Add a test case for the issue

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/test/java/com/cloudbees/hudson/plugins/folder/computed/ComputedFolderTest.java http://jenkins-ci.org/commit/cloudbees-folder-plugin/9f90a8fcf864d07922e3c42c55c796abd8e6303f Log: JENKINS-42254 Add a test case for the issue
            Show
            stephenconnolly Stephen Connolly added a comment - Argh! no ignore  http://jenkins-ci.org/commit/cloudbees-folder-plugin/9f90a8fcf864d07922e3c42c55c796abd8e6303f
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java
            src/main/java/org/jenkinsci/plugins/github_branch_source/PullRequestGHEventSubscriber.java
            src/main/java/org/jenkinsci/plugins/github_branch_source/PushGHEventSubscriber.java
            http://jenkins-ci.org/commit/github-branch-source-plugin/5273e4f18a1ebd4a29ec80ec79f8467faeb41195
            Log:
            Merge pull request #126 from jenkinsci/jenkins-42254

            JENKINS-42254 Make the github sync delay configurable

            Compare: https://github.com/jenkinsci/github-branch-source-plugin/compare/f7546e3755a5...5273e4f18a1e

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java src/main/java/org/jenkinsci/plugins/github_branch_source/PullRequestGHEventSubscriber.java src/main/java/org/jenkinsci/plugins/github_branch_source/PushGHEventSubscriber.java http://jenkins-ci.org/commit/github-branch-source-plugin/5273e4f18a1ebd4a29ec80ec79f8467faeb41195 Log: Merge pull request #126 from jenkinsci/jenkins-42254 JENKINS-42254 Make the github sync delay configurable Compare: https://github.com/jenkinsci/github-branch-source-plugin/compare/f7546e3755a5...5273e4f18a1e
            Hide
            stephenconnolly Stephen Connolly added a comment -

            Will be in the 2.0.4 release of Github Branch Source

            Basically you can set the delay (anywhere between 0 and 300 seconds) using the system property -Dorg.jenkinsci.plugins.github_branch_source.GitHubSCMSource.eventDelaySeconds=20 

            If you don't want to restart you can also change the value using the system groovy console, e.g. 

            org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.eventDelaySeconds=20

            Show
            stephenconnolly Stephen Connolly added a comment - Will be in the 2.0.4 release of Github Branch Source Basically you can set the delay (anywhere between 0 and 300 seconds) using the system property -Dorg.jenkinsci.plugins.github_branch_source.GitHubSCMSource.eventDelaySeconds=20   If you don't want to restart you can also change the value using the system groovy console, e.g.  org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.eventDelaySeconds=20
            Hide
            tobi42 Tobias Schoeneberg added a comment -

            great, thanks 

            Show
            tobi42 Tobias Schoeneberg added a comment - great, thanks 

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: