注意,如果 jenkins建構報錯:Please make sure you have the correct access rights and the repository exists.
而此時你是使用的SSH位址進行clone的,請改用HTTP位址去clone代碼!!!【内網推薦使用】
===========================================================================
一.在源碼管理下,設定gitlab上的項目clone位址
可以選擇SSH位址和HTTP位址兩種
【Devops】【docker】【CI/CD】Jenkins源碼管理,設定gitlab上項目的clone位址 + jenkins建構報錯:Please make sure you have the correct access rights and the repository exists. 如果輸入的是SSH位址,可以選擇點選添加按鈕,設定SSH-Key,增加安全性
【Devops】【docker】【CI/CD】Jenkins源碼管理,設定gitlab上項目的clone位址 + jenkins建構報錯:Please make sure you have the correct access rights and the repository exists.
SSH-KEY介紹+生成步驟
填寫完成後,點選左下角 添加
【Devops】【docker】【CI/CD】Jenkins源碼管理,設定gitlab上項目的clone位址 + jenkins建構報錯:Please make sure you have the correct access rights and the repository exists.
【Devops】【docker】【CI/CD】Jenkins源碼管理,設定gitlab上項目的clone位址 + jenkins建構報錯:Please make sure you have the correct access rights and the repository exists.
【Devops】【docker】【CI/CD】Jenkins源碼管理,設定gitlab上項目的clone位址 + jenkins建構報錯:Please make sure you have the correct access rights and the repository exists. 點選右上角頭像處,點選設定,點選左側SSH密鑰,複制上面的公鑰,添加在此處
添加完成後,會在下方顯示
到此,關于Jenkins源碼管理處,添加GitLab項目的SSH克隆位址,并為SSH通信添加SSH-Key即完成了。