-
Bug
-
Resolution: Won't Fix
-
Minor
-
None
-
Jenkins 2.1, github-organization-folder 1.3, github-api 1.75
When creating a new job for a GitHub org, I'm seeing the following in the Jenkins logs:
WARNING: Failed to register GitHub Org hook to https://github.com/karlmdavis (missing permissions?): {"message":"Not Found","documentation_url":"https://developer.github.com/v3"} May 04, 2016 8:03:46 PM org.jenkinsci.plugins.orgfolder.github.MainLogic applyOrg WARNING: Failed to register GitHub Org hook to https://github.com/HHSIDEAlab (missing permissions?): {"message":"Not Found","documentation_url":"https://developer.github.com/v3"}
I did confirm that the personal access token I'm using has the admin:repo_hook permission, as well as admin:org_hook. Not sure what else to check.
The plugin seems to work correctly aside from this: it finds projects with Jenkinsfile s and builds them when asked. Just no webhook triggers.
[JENKINS-34612] Jenkins 2.1 not registering GitHub org webhooks: "WARNING: Failed to register GitHub Org hook to ..."
Description |
Original:
When creating a new job for a GitHub org, I'm seeing the following in the Jenkins logs: {code} WARNING: Failed to register GitHub Org hook to https://github.com/karlmdavis (missing permissions?): {"message":"Not Found","documentation_url":"https://developer.github.com/v3"} May 04, 2016 8:03:46 PM org.jenkinsci.plugins.orgfolder.github.MainLogic applyOrg WARNING: Failed to register GitHub Org hook to https://github.com/HHSIDEAlab (missing permissions?): {"message":"Not Found","documentation_url":"https://developer.github.com/v3"} {code} I did confirm that the personal access token I'm using has the {{admin:repo_hook}} permission, as well as {{admin:org_hook}}. Not sure what else to check. The plugin seems to work correctly aside from this: it finds projects with {{Jenkinsfile}}s and builds them when asked. Just no webhook triggers. |
New:
When creating a new job for a GitHub org, I'm seeing the following in the Jenkins logs: {code} WARNING: Failed to register GitHub Org hook to https://github.com/karlmdavis (missing permissions?): {"message":"Not Found","documentation_url":"https://developer.github.com/v3"} May 04, 2016 8:03:46 PM org.jenkinsci.plugins.orgfolder.github.MainLogic applyOrg WARNING: Failed to register GitHub Org hook to https://github.com/HHSIDEAlab (missing permissions?): {"message":"Not Found","documentation_url":"https://developer.github.com/v3"} {code} I did confirm that the personal access token I'm using has the {{admin:repo_hook}} permission, as well as {{admin:org_hook}}. Not sure what else to check. The plugin seems to work correctly aside from this: it finds projects with {{Jenkinsfile}} s and builds them when asked. Just no webhook triggers. |
Workflow | Original: JNJira [ 170774 ] | New: JNJira + In-Review [ 184037 ] |
Blargh, I just figured out what the problem was. Hat tip to this fine fellow for the clue I needed: https://github.com/juretta/hudson-github-plugin/issues/4#issuecomment-56458604. The bug is actually a case-sensitivity issue.
The log entries I included in my issue description were a red herring: a webhook was automatically created (I just missed it), and was being fired from GitHub as expected, and was even being received by Jenkins. Unfortunately, though, Jenkins was ignoring the hook events, because my organization name in Jenkins was cased as HHSIDEALab, rather than as HHSIDEAlab (which is how it's cased in GitHub and in the hook events).
Hilariously, this blew a whole day for me. I know it's a super minor problem in the grand scheme of things, but if you folks could fix the issue, or at least add a useful error/warning in the logs, that'd be super helpful to "future me"s.