Getting the git clone url from inside bitbucket plugin

Hello,

I am trying to get the git clone url from inside a bitbucket plugin (Java api).

The NavBuilder does not seem to provide such a mechanism and I spent a lot of time looking for it in the source code, to no success.

Does anybody know a good solution?

Thank you in advance.

Try to use RepositoryService#getCloneLinks

1 Like

Thank you very much! Wasted a lot of time on this :smile: