Jenkins: Failed to connect to repository

后端 未结 13 1614
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-03 04:16

I\'m trying to connect jenkins on a github repo.

When I specify the Repo URL jenkins return the following error message:

Failed to connect to

13条回答
  •  离开以前
    2020-12-03 04:51

    On Ubuntu, placed your id_rsa and id_rsa.pub files in /var/lib/jenkins/.ssh

    Make Jenkins own them sudo chown -R jenkins /var/lib/jenkins/.ssh/

    Make sure that Jenkins key is added as deploy key with RW access in GitHub (or similar) - use the id_rsa.pub key for this.

    Now everything should jive with the SCM Sync Plugin.

提交回复
热议问题