2016-11-02 49 views
0

我已经升级了操作系统和Jenkins,它是从Windows XP和古老版本的Jenkins(安装在2012年)上运行的。所以现在我在Windows 7和Jenkins 2.19.1上(最新的写作时间)。除此之外,唯一不同的是我没有jenkins用户,并且在桌面上作为服务而不是本地运行。Jenkins,Kiln和Mercurial:abort:[repository]需要http授权

我需要更新Jenkins工作区以外的存储库。我们称之为C:\ Repos \ Operations。这样做在Windows批处理命令的汞拉-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做且在詹金斯Windows批处理命令hg showconfig --debug之间唯一的区别是以下2行:

read config from: C:\Windows\system32\config\systemprofile\mercurial.ini 
read config from: C:\Windows\system32\config\systemprofile\.hgrc 

但这些文件不会在我的系统上存在。所以,从理论上讲,它应该从相同的设置位置读取所有内容,但事实并非如此。

有人有什么想法吗?

谢谢!

回答