Using github for windows on same machine, with same credentials works fine. Can pull/clone.
However teamcity installed as a windows service on the same machine, returns the following error
List remote refs failed: org.eclipse.jgit.errors.TransportException: https://github.com/my-private-repo.git: not authorized
In teamcity, in the project VCS Root, if the authentication method is based on ssh public/private key, then the fetch URL should be like [email protected]:.../repository.git
. Using https://
in the fetch URL causes the error message:
List remote refs failed: org.eclipse.jgit.errors.TransportException..
to occur.
In bitbucket, i resolved this by creating an App Password under settings, and used the app password instead of my bitbucket password
Had the same issue and resolved it by creating a Personal Access Token in Github and using it as a password in TeamCity.
Having same error with Stash (=Bitbucket server) and solution was to give the user specified in TeamCity the permissions in Stash to access the repository. Permissions are per-repository.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With