Skip to content

Conversation

@dgutzmann
Copy link

Instead of trying to register a webhook for each child job in a multibranch-pipeline project, only
register the base project.

With many multibranch pipelines and many prs/branches per project, the total number of calls to github (in my case github enterprise) can become very large and cause rate limiting/abuse rate limiting to be reached

Copy link

@atsharp atsharp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

…ll children

Instead of trying to register a webhook for each child job in a multibranch-pipeline project, only
register the base project
@dgutzmann dgutzmann marked this pull request as ready for review November 6, 2020 19:48
@KostyaSha KostyaSha requested a review from jglick November 7, 2020 00:25
Copy link
Member

@jglick jglick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No particular opinion; did not realize this plugin even registered hooks to begin with. github-branch-source also does so, though this style should probably be considered deprecated: better to use an App which automatically receives webhooks for anything it is installed on.

@dgutzmann
Copy link
Author

No particular opinion; did not realize this plugin even registered hooks to begin with. github-branch-source also does so, though this style should probably be considered deprecated: better to use an App which automatically receives webhooks for anything it is installed on.

I haven't really used the github-branch-source approach via the github app yet, possibly a better solution in general for auto scanning repos and such.

I was having other issues and I followed this guide and that is when I came across the

Re-register hooks for all jobs

button and saw that it had an issue with the child jobs...

@dgutzmann dgutzmann closed this Nov 10, 2021
@jglick
Copy link
Member

jglick commented Nov 10, 2021

FYI jenkinsci/github-branch-source-plugin#289, still on my back burner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants