-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web hook not triggering build #184
Comments
I tried upgrading Jenkins from 2.7.1 to 2.32.1, but that appears to have made no difference. The plugins are all on their latest versions:
|
I guess you missing admin repo_hooks permission. Trailing slash is sensitive details here jenkinsci/github-plugin#152 |
So provide permissions for token and it will register right hook urls. |
Thanks for getting back to me so quickly. I had tried managing the hooks from Jenkins before with little success. I just tried again with the same result by doing the following:
Saw the following in the system log:
|
That what i said :) Also please check that your automation user accepted invite to repository. |
Simply give more permissions for token and try again. |
I had tried previously with my own (owner) account and it had still failed, as well as an access token with all permissions. Which credentials config exactly in Jenkins needs to be set to the right value? I've been assuming it's the "Credentials" field under "GitHub Server" |
Anyway, giving up on the auto-manage hooks feature, it looks like I was able to get this to work by setting up a web hook manually. I'm currently not using the Jenkins (GitHub plugin) service, but a web hook configured with events "issue_comment" and "pull_request", and a URL ending with a trailing slash. Thanks for your help! |
Yes, github server configuration in global settings. PR/branch trigger uses this global connection from github-plugin API. When you reconfigure job it tries register hook. When there is no enough permissions, then it may fail. |
I have the same error- defined manage hooks checkbox, in system configuration, tested connection with the access token and it's ok |
Do you have trailing slash somewhere in addresses? |
you mean in the jenkins URL in "configure system"? yes, it's like this- http://jenkinsurl:8080/ |
I had a trailing slash in the git repo in the job itself. |
This is really annoying, will check what could be done. Sounds like slash is a culprit of a lot of reports. |
I don't mind the slash, I mind the error in log - It had nothing to do with the existence of the slash.. without you, I would have never guessed it's related to the slash. So probably also should refine the error messages. |
One user found this, i also didn't know what's wrong :) |
As long as we're spreading the love :) |
@hila3000 could you write example of bad url that you had in your job settings? |
Github UI suggests clone url without slash. Where did you get this trailing slash? |
Upstream fix jenkinsci/github-plugin#206 |
I have no idea.. wasn't intentionally though |
I have set up a job to trigger on "Pull Request Opened" and "Commit changed", and web hooks are being sent from GitHub Enterprise, but the job does not trigger automatically and the GitHub PR Polling Log does not update after the hook is sent.
Further info:
Any help you could provide would be appreciated.
The text was updated successfully, but these errors were encountered: