Issue
We were using GitHub plugin with Username and password credentials so far in our Jenkins setup.
However, after Aug 13th, 2021, this stopped working raising this error:
stderr: remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/
for more information.
As per the answer provided by in How to use Github Personal Access Token in Jenkins
I modified the URL to be:
https://<access token>@github.com/<userName>/<organization>/<repository>.git
but it did not work.
Am I missing any steps here?
Solution
Create your Private access token using below URL
After that In Jenkins Job under Source Code Management section, provide Git repository URL in the format https://[email protected]/<Your_Org>/yourRepoName.git
e.g if Repo name is abc,Organization is test and Token number is 12345678 then URL will be look like
https://[email protected]/test/abc.git
This method resolved my problem.
Answered By - hussains8
Answer Checked By - Gilberto Lyons (JavaFixing Admin)