github - 圆圈 CI : error cloning repository: repository not found

标签 github circleci

在尝试在 CircleCI 中构建项目时,我收到以下错误:

Either git or ssh (required by git to clone through SSH) is not installed in the image. Falling back to CircleCI's native git client but the behavior may be different from official git. If this is an issue, please use an image that has official git and ssh installed. Cloning git repository

error cloning repository: repository not found

这会导致构建失败。

最佳答案

这是我解决问题的方法:

问题在于,设置该项目的工程师设置了特定于他的部署 key 用户 key 离开了公司,因此他无法访问公司的 GitHub 存储库项目被撤销,这使得 Circle CI 中项目的现有部署 key 用户 key 变得过时。

我所要做的就是:

  • 转至项目设置
  • 然后SSH key
  • 删除现有的部署 key 用户 key (如果有)
  • 添加新的部署 key
  • (可选 - 不需要)添加新的用户 key (通过 GitHub 授权)

enter image description here

此后,我能够在 Circle CI 中成功构建项目

关于github - 圆圈 CI : error cloning repository: repository not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74004701/

相关文章:

node.js - 在nodejs下部署远程github仓库的一部分

eclipse - 无法将新文件添加到 EGit 中的存储库

javascript - Axios CORS 问题与 Github oauth 未获取访问 token

ruby-on-rails - rails : rake db:structure:load times out on CircleCI 2. 0

创建标记版本时 CircleCI 报告 "No workflow"

node.js - CircleCI 中的多个 Node.js 版本

cordova - 无法在cordova项目中安装插件

Github 个人访问 token ,用于访问私有(private)仓库的 :/repos/:user/:repo/contents

php - 无法在 ubuntu php7 服务器上安装 gettext : php_gettext. dll 没有这样的文件或目录

docker - 如何在Circle CI中设置环境变量以在应用程序中用作process.env.FOO