1

I am trying to log in to GitHub from Jenkins in order to run a job and then commit and push it to GitHub.

I've tried the steps in the first comment of this post and it does not work for me: It keeps saying that the authentication failed, even though I already set everything on the Git Auth plugin.

This is the jenkins console error:

error

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
ccaldito
  • 15
  • 2
  • Hi ccaldito! Welcome :) Formatted code included in the question would be much easier for others to see and help you with your issue; not all users will click on the link to the image! I would recommend editing your Question to include this. [This page has a helpful guide to formatting your code/error messages](https://stackoverflow.com/help/formatting). – tjheslin1 Oct 22 '21 at 16:48
  • Please use SSH key to checkout or push in github. Follow [this]( http://www.inanzzz.com/index.php/post/y3ck/integrating-jenkins-with-github-over-ssh) article to get it setup. – Sourav Oct 23 '21 at 11:42

1 Answers1

1

although i already set everything on the git auth plugin

Make sure that what you "have set" involves using a PAT (Personnal Access Token) as password.

Then the connection would work, since GitHub no longer use user account password directly.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250