KostyaSha / github-integration-plugin

Jenkins GitHub Integration Plugin
https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Integration+Plugin
MIT License
98 stars 85 forks source link

No credentials with Admin Access #314

Open alex067 opened 5 years ago

alex067 commented 5 years ago

Hey guys,

I'm implementing web hooks, however the error I receive is that there are no credentials with admin access to manage hooks. The host, repo and username are all correct in the error message.

Under the config, when I click "Test Connection" on my personal token assigned to the github server credential, it verifies the user just fine.

Manage hooks is checked, and the token assigned to this credential actually has all privileges enabled, just to make sure it isn't a privilege issue.

I followed the troubleshooting steps from https://support.cloudbees.com/hc/en-us/articles/224543927-GitHub-Integration-Webhooks, however the issue persists.

I'm just not sure why the test connection works fine, but the actual hook is saying theres invalid privileges

KostyaSha commented 5 years ago

Do you have trailing slash in github url in job settings?

alex067 commented 5 years ago

@KostyaSha For the repository URL in the job settings? If so, no trailing slash there

svadlama commented 4 years ago

Same issue here. Any solution?

alex067 commented 4 years ago

The issue in my case was that, my jenkins instance was hosted on a private network via a docker container.

The solution was to have https://github.com/probot/smee.io basically act as a middle man between git and my jenkins container