简体   繁体   English

Jenkins,Kiln和Mercurial:abort:[repository]所需的http授权

[英]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.

相关问题 如何设置授权Hudson / Jenkins来克隆你的mercurial存储库 - How to setup Authorization Hudson /Jenkins to clone your mercurial repository 詹金斯未检测到Mercurial存储库 - Jenkins not detecting Mercurial repository Jenkins-Testlink HTTP服务器返回意外状态:需要授权 - Jenkins-Testlink HTTP server returned unexpected status: Authorization Required 使用 Jenkins 和 Jenkins Job 设置 Mercurial 存储库? - Setup Mercurial Repository with Jenkins and Jenkins Job? 如何在 jenkins 中克隆 googlecode mercurial 存储库 - How to clone a googlecode mercurial repository in jenkins Jenkins访问bitbucket.org上的Mercurial存储库的问题 - Problem with Jenkins accessing Mercurial repository on bitbucket.org 如何使本地Jenkins在本地Merurial存储库中的分支机构正常工作? - Howto get local Jenkins with branch in local mercurial repository to work? 如何允许多个Jenkins构建标记Mercurial存储库? - How to allow multiple Jenkins builds to Tag a Mercurial repository? Jenkins Mercurial插件给出错误:无法完成部分提取,因为其他存储库不支持changegroupsubset - Jenkins Mercurial plugin gives error: partial pull cannot be done because other repository doesn't support changegroupsubset 如何在 Jenkins 上使用 Mercurial 对存储库中的每个提交/标记/推送等进行自动构建? - How to do an automatic build for every commit/tag/push etc on a repository with Mercurial on Jenkins?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM