I've started looking into this issue again. It's been an ongoing problem, that only continues to get worse over time. We're using the basic-branch-build-strategies-plugin at the moment, which provides an option for not building tags older than a week. But this option provides no value in limiting our quota usage. And based the investigation I just did, no matter what build strategy that gets applied, the issue will persist.
The GitHubSCMSource plugin processes each tag with an api request https://github.com/jenkinsci/github-branch-source-plugin/blob/master/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java#L1048 BEFORE the build strategies get evaluated https://github.com/jenkinsci/branch-api-plugin/blob/c4d394415cf25b6890855a08360119313f1330d2/src/main/java/jenkins/branch/MultiBranchProject.java#L2210 This is a bit frustrating because the information that is used to filter (tagDate) is already known before making the additional request to Github. -------------- In related news, I noticed that the github cache is going to be added back in. That may help eliminate some of the pain this topic is causing us, but regardless, there seems to me to be a fault in the way build strategies and api requests work. On Saturday, 6 January 2018 05:30:40 UTC+1, R Tyler Croy wrote: > > (replies inline) > > On Fri, 05 Jan 2018, Alicia Doblas wrote: > > > Hi, > > > > a couple of months ago we had the same problem. After improving the > > discover filter of the branch/tag/PR calls, there weren't too much to > > do...so we decided to "by-pass" the api of github by using different > users. > > Looks like the api limit applies to a single user, so the "solution" for > us > > was to split our jobs into different groups, each of them using a > different > > user for the api call. > > > > By changing this configuration we can manage 5000 req/hour x N groups. > > This is very very much against the GitHub.com terms of service, which > states > that one legal entity can have one free machine account. > > https://help.github.com/articles/github-terms-of-service/#b-account-terms > > > > - R. Tyler Croy > > ------------------------------------------------------ > Code: <https://github.com/rtyler> > Chatter: <https://twitter.com/agentdero> > xmpp: rty...@jabber.org <javascript:> > > % gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F > ------------------------------------------------------ > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/db9a8af8-c3f4-4217-a712-23b1a82867d7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.