我已经从Windows XP和一个古老的Jenkins版本(2012年安装)升级了操作系统和运行它的Jenkins。所以我现在在Windows 7和Jenkins 2.19.1上(写作时的最新版本)。除此之外,唯一不同的是我没有jenkins用户,而且它在桌面上作为服务而不是本地运行。
我需要更新Jenkins工作区之外的存储库。我们的电话是C:\ Repos \ Operations。在windows批处理命令中执行hg pull -u,我得到了:
C:\Repos\Operations>hg pull --debug -u
using https://xxx.kilnhg.com/Code/Repositories/Operations
sending capabilities command
xxx.kilnhg.com certificate successfully verified
abort: http authorization required for https://xxx.kilnhg.com/Code/Repositories/Operations
如果我在cmd.exe中执行它,它可以正常工作。我一直在寻找答案的时间。使用hg showconfig --debug
在cmd中执行此操作与在jenkins windows batch命令中使用hg showconfig --debug
之间的唯一区别是以下两行:
read config from: C:\Windows\system32\config\systemprofile\mercurial.ini
read config from: C:\Windows\system32\config\systemprofile\.hgrc
但是我的系统上不存在这些文件。因此,从理论上讲,它应该是从相同的设置位置读取所有内容,但事实并非如此。
有人有任何想法吗?
谢谢!
答案 0 :(得分:0)
尚未发表评论,因此根据您的评论进行评论后,它找不到正确的' .hgrc'文件。您是否尝试在批处理命令中提供用户名/密码,例如此处Mercurial (HG) pull parameters: username and password?