1

我们已经将 Jenkins 与 Gitlab/git lite 与 Jenkins 一起用作 CI 服务器。我们让这一切在一组不同的服务器上运行良好,但最近迁移到了一组新的服务器。SSH 密钥已复制,Jenkins 配置已复制并恢复。

当一个作业现在在一个新代理上运行时,它会启动 git 尝试克隆 repo 并做到这一点

Started by user anonymous
Building remotely on jenk-agt-w01 in workspace d:\project
Checkout:project / d:\project - hudson.remoting.Channel@5ab1efc4:jenk-agt-w01
Using strategy: Default
Last Built Revision: Revision 72b6ecb18151f6c68bf55a588eb07f8c92660832 (origin/master)
Cloning the remote Git repository
Cloning repository git2@git.server.com:project.git
git --version
git version 1.7.10.msysgit.1

然后詹金斯的小颤抖者坐在那里旋转。

在服务器上创建文件夹并创建 .git 文件夹,但它从不下载 repo。

我可以手动登录服务器并使用相同的 SSH 密钥运行 git,它会在几秒钟内下载。我无法以 Jenkins 服务器帐户登录,因为我现在手头没有密码。我没有收到错误,因此很难调试。

我不是在寻找答案,而是为了攻击这个问题并理解它。

4

0 回答 0