4

I'm trying to setup jenkins with my remote git server on VSTS. But I'm not sure how to do this... I've been created a new Job, but when I try to connect with git, I have this error: enter image description here

someone knows how to connect and setup this ?

Thanks a Lot !

Otávio Larrosa
  • 303
  • 2
  • 12
  • When did the error occur? And What's the credential did you use, email&password, PAT or alternative credentials? – Marina Liu Apr 02 '18 at 03:16

2 Answers2

1

That means the Jenkins master machine where Git is installed has a credential manager (here, the Windows Credential Manager) which attempts to cache the credentials.

Check on that server:

git config credential.helper

You can either:

  • type the git ls-remote command manually on that server (using the account which executes Jenkins), and cache the username/password there
  • or deactivate the credential helper:

    git config --global --unset credential.helper
    

That will avoid Git to try and prompt for credentials in order to cache them.

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

I've found a answer... I had to log in with credentials with this user

enter image description here

Otávio Larrosa
  • 303
  • 2
  • 12