我使用 mercurial,我试图将 Jenkins 指向自定义目录。我遇到了这个错误,
Started by user Netro
Building in workspace <path-to-workspace>
[workspace] $ hg showconfig paths.default
ERROR: Workspace reports paths.default as Not trusting file <path-to-workspace>/.hg/hgrc from untrusted user root, group root
Not trusting file <path-to-workspace>/.hg/hgrc from untrusted user root, group root
which looks different than http://ip-address/project so falling back to fresh clone rather than incremental update
ERROR: Failed to clean the repository checkout
我搜索了互联网,它建议添加trusted
字段。我曾尝试使用以下代码~/.hgrc, /etc/mercurial/hgrc, <path-to-workspace>/.hg/hgrc
[trusted]
users = jenkins, root
但它不会消除错误。
当我不使用自定义目录选项时。它运行成功。Jenkins 和存储库的安装是在 Ubuntu 1204 上使用 root 用户完成的。任何建议都会有所帮助。