Unable to configured Pipeline Shared Libraries

Hello, I’m experiencing issues when setting up a pipeline shared library for my repo. I get the following error from Jenkins. I can run the same command on my Jenkins controller perfectly fine from command line git. I have verified permissions and credentials and they’re good. Any insight would be helpful. Thank you guys!

hudson.plugins.git.GitException: Command “git.exe ls-remote -h – https:/mybitbucket.com/bitbucket/scm/myproject/shared-library.git” returned status code 128:
stdout:
stderr: fatal: remote error: Repository not found
The requested repository does not exist, or you do not have permission to
access it.

Can you run the same command as the user that Jenkins is running as?

Hey Alex,

Yes, I can run the exact same command from the user being used in Jenkins from command line.

Hello does anyone have an idea?

Is the repo with the shared library in any way protected and you need a credential to access it? If yes have you properly configured this credential?

Make sure that the credentials used by Jenkins to access the repository are correct and have the necessary permissions.
I think you can test the credentials by running the git ls-remote command manually on the Jenkins controller.

Hello all, I can successfully run git ls-remote command from command line manually from Jenkins controller with the same credentials. The issue is it’s not working from Jenkins controller/controller GUI when configuring my shared library. Any Ideas? Thanks in advance for any help.

Seems like a credential is being cache for all pipelines and the one on the GUI isn’t actually being set/used. Why is one credential being used for all my project builds for shared libraries. Thanks in advance for any help.