Authentication Failure in Azure Dev Ops when Using PAT

Balaji Vijayan 1 Reputation point
2022-09-14T05:35:08.833+00:00

When using Azure DevOps GIT PAT, getting the Authentication failure error.

On one of your servers we have configured, GOCD materials with Personal Access Token to perform GIT Checkout in let's say Box1.

When we manually try the git checkout from GIT CLI from box1 using the PAT we get the same authentication failure error.

But we are able to successfully do a GIT checkout of the same repo using the same PAT using the JGIT implementation in the JAVA app.

Below is the Authentication Error from GOCD, masked some of the details for the logs

Error performing command: --- Command ---
git ls-remote https://*:******@Mytimaus .*****//***/_git/productcatalog_v1 refs/heads/main
--- Environment ---
{GIT_ALLOW_PROTOCOL=http:https:ssh:git:file:rsync}
--- INPUT ----
--- EXIT CODE (128) ---
--- STANDARD OUT ---

--- STANDARD ERR --- STDERR: fatal: Authentication failed for 'https://:******@Mytimaus .///_git/productcatalog_v1/'

Community Center Not monitored
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.