Skip to Content
Menu
This question has been flagged
3 Replies
301 Rodiniai

Hello everyone,

I need help configuring Jenkins to work with a private GitHub repository for our Odoo 17 custom modules.

I have set up a Jenkins job to pull our code, but every build fails with the following error

Failed to connect to repository: Command "git ls-remote -h stderr: Permission denied (publickey).

fatal: Could not read from remote repository.


Portretas
Atmesti
Autorius

Thank You Anagha

Best Answer

Have you tried creating an SSH key on the server running Jenkins, adding the public key to the GitHub repository (Settings -> Deploy keys) and making sure Jenkins is using that private key?

Portretas
Atmesti

I’ve seen the same Permission denied (publickey) error.

This post was last modified: 05-09-2025, 00:54 am by https://blockblastonline.com

Related Posts Replies Rodiniai Veikla
1
geg. 25
1359
0
saus. 25
1072
1
gruod. 24
1634
4
liep. 25
17541
1
birž. 25
539