[英]Jenkins, Kiln and Mercurial: abort: http authorization required for [repository]
I've upgraded the OS and the Jenkins that was running on it from Windows XP and an ancient version of Jenkins (installed in 2012). 我已经升级了操作系统和从Windows XP运行的Jenkins和一个古老的Jenkins版本(2012年安装)。 So now I'm on Windows 7 and Jenkins 2.19.1 (the latest at time of writing).
所以现在我使用的是Windows 7和Jenkins 2.19.1(编写本文时的最新版本)。 Other than that, the only different is that I do not have a jenkins user, and it's running as a service instead of locally on the desktop.
除此之外,唯一不同的是我没有jenkins用户,它在桌面上作为服务而不是本地运行。
I need to update a repository that is outside my Jenkins workspace. 我需要更新Jenkins工作区之外的存储库。 Let's call is C:\\Repos\\Operations.
我们的电话是C:\\ Repos \\ Operations。 Doing an hg pull -u in a windows batch command and I get this:
在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
It works fine if I do it in the cmd.exe. 如果我在cmd.exe中执行它,它工作正常。 I've been searching for hours for an answer.
我一直在寻找几个小时的答案。 Using
hg showconfig --debug
the only difference between doing it in the cmd and having hg showconfig --debug
in the jenkins windows batch command is the following 2 lines: 使用
hg showconfig --debug
唯一的区别在cmd做,并具有之间hg showconfig --debug
在詹金斯窗口批处理命令是以下2行:
read config from: C:\Windows\system32\config\systemprofile\mercurial.ini
read config from: C:\Windows\system32\config\systemprofile\.hgrc
But those files do not exist on my system. 但是我的系统上不存在这些文件。 So, in theory, it should be reading everything from the same settings location, but it's not.
因此,从理论上讲,它应该是从相同的设置位置读取所有内容,但事实并非如此。
Does someone have any idea? 有人有什么想法吗?
Thanks! 谢谢!
Can't comment yet, so this goes under 'Answer': per your comment it does not find the correct '.hgrc' file. 无法发表评论,所以这是在“答案”下:根据你的评论,它找不到正确的'.hgrc'文件。 Have you tried providing the username/password in the batch command, like here Mercurial (HG) pull parameters: username and password ?
您是否尝试在批处理命令中提供用户名/密码,例如Mercurial(HG)拉参数:用户名和密码 ?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.