Branch Indexing/Poll SCM equivalent with the GitHub Organization Folder

62 views
Skip to first unread message

R. Tyler Croy

unread,
Aug 4, 2016, 1:32:12 PM8/4/16
to jenkins...@googlegroups.com

Posting this to the list because I figure the answer might be useful for
posterity. With the GitHub Organization Folder there is the "Periodically if
not otherwise run" Build Trigger which is set to "1 day" by default.

From my understanding this also means that branch indexing on those
repositories in the organization, in effect, are also "running" once a day
(since the org is reindexed daily).

I'm curious if there is an endpoint to hit with a GitHub Webhook which will
ensure that pull requests and new branches are built on-demand?


Additionally, if my Jenkins installation is unreachable by GitHub (e.g. behind
a firewall), are there any other tunables I can use to ensure that branches and
pull requests are discovered in specific repositories in a more timely manner,
is ""reindex the entire organization" my only option?



Cheers
- R. Tyler Croy

------------------------------------------------------
Code: <https://github.com/rtyler>
Chatter: <https://twitter.com/agentdero>

% gpg --keyserver keys.gnupg.net --recv-key 3F51E16F
------------------------------------------------------
signature.asc

Jesse Glick

unread,
Aug 4, 2016, 2:32:05 PM8/4/16
to Jenkins Users
On Thursday, August 4, 2016 at 1:32:12 PM UTC-4, R Tyler Croy wrote:
From my understanding this also means that branch indexing on those
repositories in the organization, in effect, are also "running" once a day
(since the org is reindexed daily).

No, branch indexing is at a different level, but by default it is also done once per day. Currently `OrganizationFolder` hard-codes that, would be an RFE in `branch-api-plugin` to make it configurable.
 
I'm curious if there is an endpoint to hit with a GitHub Webhook which will
ensure that pull requests and new branches are built on-demand?

Yes, the regular endpoint advertised by the GitHub plugin. See the demo.

if my Jenkins installation is unreachable by GitHub (e.g. behind
a firewall)

Reply all
Reply to author
Forward
0 new messages