0

I am using JGit to call

cloneRepository().setURI().setDirectory().setCredentialsProvider().call();

I am currently using UsernamePasswordCredentialsProvider() to try to provide the information that stash needs but I am getting an error that says UnsupportedCredentialItem. I am wondering if anyone knows specifically what stash needs in order to perform a git clone through JGit.

Thanks for you help

SQB
  • 3,926
  • 2
  • 28
  • 49
user3073234
  • 771
  • 5
  • 11
  • 24

1 Answers1

0

You can use the http protocol and pass in a username /password.

In case you want to use the ssh protocol, make sure you have the ssh keys stored in Stash for the userid. In that case , stash does the authentication behind the scenes and you do not need to provide username/password

Biswajit_86
  • 3,661
  • 2
  • 22
  • 36