# Unable to configured Pipeline Shared Libraries

**URL:** <https://community.jenkins.io/t/unable-to-configured-pipeline-shared-libraries/20073>\
**Category:** Ask a question\
**Created:** [September 24, 2024, 5:00pm UTC](https://community.jenkins.io/t/unable-to-configured-pipeline-shared-libraries/20073 "2024-09-24T17:00:33Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ztvc](https://avatars.discourse-cdn.com/v4/letter/z/8e8cbc/32.png) [@ztvc](https://community.jenkins.io/u/ztvc)\
**Post date:** [September 24, 2024, 5:00pm UTC](https://community.jenkins.io/t/unable-to-configured-pipeline-shared-libraries/20073/1 "2024-09-24T17:00:33Z")

</div>

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.

 ![lib](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/1/14ec1b15eb7b6d40fa6dfe12ad9f328a689f8a3d.png)

---

<div class="post-metadata">

**Author:** ![slide\_o\_mix](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/slide_o_mix/32/20977_2.png) [@slide\_o\_mix](https://community.jenkins.io/u/slide_o_mix)\
**Post date:** [September 25, 2024, 2:06am UTC](https://community.jenkins.io/t/unable-to-configured-pipeline-shared-libraries/20073/2 "2024-09-25T02:06:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ztvc](https://avatars.discourse-cdn.com/v4/letter/z/8e8cbc/32.png) [@ztvc](https://community.jenkins.io/u/ztvc)\
**Post date:** [September 25, 2024, 12:59pm UTC](https://community.jenkins.io/t/unable-to-configured-pipeline-shared-libraries/20073/3 "2024-09-25T12:59:48Z")

</div>

Hey Alex,

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

---

<div class="post-metadata">

**Author:** ![ztvc](https://avatars.discourse-cdn.com/v4/letter/z/8e8cbc/32.png) [@ztvc](https://community.jenkins.io/u/ztvc)\
**Post date:** [September 27, 2024, 1:52pm UTC](https://community.jenkins.io/t/unable-to-configured-pipeline-shared-libraries/20073/4 "2024-09-27T13:52:39Z")

</div>

Hello does anyone have an idea?

---

<div class="post-metadata">

**Author:** ![mawinter69](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mawinter69/32/1625_2.png) [@mawinter69](https://community.jenkins.io/u/mawinter69)\
**Post date:** [September 28, 2024, 10:13pm UTC](https://community.jenkins.io/t/unable-to-configured-pipeline-shared-libraries/20073/5 "2024-09-28T22:13:16Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![poddingue](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/poddingue/32/985_2.png) [@poddingue](https://community.jenkins.io/u/poddingue)\
**Post date:** [September 30, 2024, 8:30am UTC](https://community.jenkins.io/t/unable-to-configured-pipeline-shared-libraries/20073/6 "2024-09-30T08:30:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ztvc](https://avatars.discourse-cdn.com/v4/letter/z/8e8cbc/32.png) [@ztvc](https://community.jenkins.io/u/ztvc)\
**Post date:** [September 30, 2024, 1:37pm UTC](https://community.jenkins.io/t/unable-to-configured-pipeline-shared-libraries/20073/7 "2024-09-30T13:37:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ztvc](https://avatars.discourse-cdn.com/v4/letter/z/8e8cbc/32.png) [@ztvc](https://community.jenkins.io/u/ztvc)\
**Post date:** [October 3, 2024, 1:06pm UTC](https://community.jenkins.io/t/unable-to-configured-pipeline-shared-libraries/20073/8 "2024-10-03T13:06:35Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ztvc](https://avatars.discourse-cdn.com/v4/letter/z/8e8cbc/32.png) [@ztvc](https://community.jenkins.io/u/ztvc)\
**Post date:** [February 19, 2025, 4:58pm UTC](https://community.jenkins.io/t/unable-to-configured-pipeline-shared-libraries/20073/9 "2025-02-19T16:58:23Z")

</div>

Anyone have any ideas?
