Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jenkins Mercurial不信任文件_Mercurial_Jenkins - Fatal编程技术网

Jenkins Mercurial不信任文件

Jenkins Mercurial不信任文件,mercurial,jenkins,Mercurial,Jenkins,我正在使用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

我正在使用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
但这并不能消除错误

当我不使用自定义目录选项时。它成功地运行了。 Jenkins和repository的安装是在Ubuntu1204上使用root用户完成的。
任何建议都会有帮助。

看来,hg无法接受詹金斯作为项目的所有者。默认目录中的Jenkins使用用户Jenkins创建工作区。所以它能够运行它。我在root组中添加了Jenkins,并将项目的所有者从root更改为Jenkins。现在,项目由Jekins更新

[trusted]
users =  jenkins, root