【问题标题】:Configure git with Jenkins on Centos在 Centos 上使用 Jenkins 配置 git
【发布时间】:2016-01-24 10:52:51
【问题描述】:

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

我的控制台

谁能给我一个解决方案?

【问题讨论】:

    标签: git plugins jenkins centos


    【解决方案1】:

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

    /usr/local/git/bin
    

    你会在this blog post找到相同的安装过程(和相同的路径)。

    更一般地说,如果您可以访问 CentOS 虚拟机,请执行一个

    which git
    

    查看它的安装位置。

    请注意,您看到“Installed git version too old for credentials support”的警告意味着:

    【讨论】:

    • 未知选项:-version 用法:git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path] [-p|--paginate|--no -pager] [--no-replace-objects] [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE] [--help] 命令[ARGS]
    • @Asif -version 不是一个选项:--version
    • 它将是 git --version
    • 是的。它成功地构建了我的 gradle 项目。非常感谢。
    猜你喜欢
    • 1970-01-01
    • 2017-01-21
    • 2018-09-16
    • 2021-12-19
    • 2013-05-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多