注意,如果 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即完成了。