Otávio Larrosa
Otávio Larrosa

Reputation: 303

How to Setting Up Git, VSTS and Jenkins

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 !

Upvotes: 4

Views: 576

Answers (2)

Otávio Larrosa
Otávio Larrosa

Reputation: 303

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

enter image description here

Upvotes: 0

VonC
VonC

Reputation: 1328712

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.

Upvotes: 1

Related Questions