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

GitHub organization job losing build history




      We have a large GitHub organization folder job (over 100 repos) that is scanned every 15 mins for changes. Occasionally (usually overnight I think) branches are losing the build history and are reset to build number 1.

      I suspect the branch indexing is somehow losing communication with GitHub and the branch is deleted and then recreated on the next successful scan. Note this doesn't appear to happen in business hours, so possibly is a result of overnight resource conservation (Jenkins is not currently shutdown overnight).

      As a workaround I have configured to not delete branches unless unchanged for 7 days, however some branches are not updated this frequently, and I don't want to extend this period as we'll have too many jobs hanging around.

      Note also that we don't currently use webhooks to detect changes, which is why it is a periodic scan every 15 mins.


        Issue Links


            fortuna Ben Fortuna created issue -
            fortuna Ben Fortuna made changes -
            Field Original Value New Value
            Link This issue relates to JENKINS-36029 [ JENKINS-36029 ]
            stephenconnolly Stephen Connolly made changes -
            Component/s github-branch-source-plugin [ 20858 ]
            Component/s github-organization-folder-plugin [ 21427 ]
            stephenconnolly Stephen Connolly made changes -
            Assignee Kohsuke Kawaguchi [ kohsuke ] Stephen Connolly [ stephenconnolly ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            stephenconnolly Stephen Connolly made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            cloudbees CloudBees Inc. made changes -
            Remote Link This issue links to "CloudBees Internal OSS-1992 (Web Link)" [ 18475 ]


              stephenconnolly Stephen Connolly
              fortuna Ben Fortuna
              0 Vote for this issue
              3 Start watching this issue