【问题标题】:hudson cannot access git repositoryhudson 无法访问 git 存储库
【发布时间】:2011-05-20 19:00:16
【问题描述】:

我试图让 hudson 从远程存储库中提取,我已经在从 /usr/lib/hudson/.ssh/id_rsa.pub 到 gitosis keydir 的 hudson 用户之间建立了 ssh 信任关系(就像我有为数百名其他用户完成)

当我以 hudson 身份登录并运行时

git clone git@gitserver:project

我明白了

你不能通过!

输入密码:

是否有任何理由哈德森用户不能从 gitosis 克隆而其他所有用户都可以?

我也尝试过全新安装 hudson。

HUDSON_HOME 设置为 /usr/lib/hudson

已尝试将 git 路径作为 git 和 /usr/bin/git

任何帮助表示赞赏! :)

【问题讨论】:

    标签: git ssh hudson gitosis


    【解决方案1】:

    在处理 ssh 时,这里重要的一个环境变量是 $HOME
    哈德逊用户的“$HOME”可能无法从哈德逊进程中设置/知道,即使“哈德逊用户”确实有一个家。
    有关详细信息,请参阅“Creating SSH keys for Gerrit and Hudson”和check your permissions on both the local and the remote sides

    HUDSON_HOME 与 ssh 无关。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-02-13
    • 2013-09-05
    • 2013-11-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多