github-plugin icon indicating copy to clipboard operation
github-plugin copied to clipboard

[JENKINS-64075] Cannot connect a Jenkins job to my private GitHub account

Open jenkins-infra-bot opened this issue 5 years ago • 0 comments

I cannot configure one job (maven project) to access my private gitHub repository. I always get the following error (see attachment). I tried user/pass and ssh credentials. My private repo also has the webhook but apparently that does not work. I run ngrok locally, which makes localhost:9090 available under a public url (webhooks in github repos need that)
can anyone tell me what is going on?

regards

Petko


Originally reported by pguglev, imported from: Cannot connect a Jenkins job to my private GitHub account
  • assignee: lanwen
  • status: Open
  • priority: Major
  • component(s): github-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-08
Raw content of original issue

I cannot configure one job (maven project) to access my private gitHub repository. I always get the following error (see attachment). I tried user/pass and ssh credentials. My private repo also has the webhook but apparently that does not work. I run ngrok locally, which makes localhost:9090 available under a public url (webhooks in github repos need that) can anyone tell me what is going on?

regards

Petko

environment
Installed Jenkins as a WAR and later as a Windows service on port 9090. Installed Maven Plugin. Tried creating a job that pulls sources from a private Github repository. I configured a private SSH key in the credentials, and I configured the private repository to have the webhook to Jenkins. Jenkins runs on my localhost but via ngrok I made it available over the internet. Versions:<br/>
Jenkins 2.249.2 (windows service on port 9090)<br/>
Installed Maven plugin and the recommended plugins at start<br/>
Local environment: Java 11
1 attachment

jenkins-infra-bot avatar Oct 29 '20 14:10 jenkins-infra-bot