在 Centos 上使用 Jenkins 配置 git

Configure git with Jenkins on Centos

我正在尝试在 CentOS VM 上配置 Jenkins。我已经在 Windows 上尝试过并成功了。 但是在 CentOS 上我不能 运行 它。它显示了与 git 相关的问题。 问题可能出在 Jenkins 上的 git 安装中。这是我的配置。

我的主机

谁能给我一个解决方案?

Git on CentOS 的默认路径应该是:

/usr/local/git/bin

您将在 this blog post 中找到相同的安装过程(和相同的路径)。

更一般地说,如果您有权访问 CentOS VM,请执行

which git

查看安装位置。

请注意,您看到的警告 "Installed git version too old for credentials support" 表示:

  • 您有 git 的正确路径(已找到并执行)
  • 但安装的版本太旧:确保upgrade to the latest git available (by recompiling the sources).