![](/img/trans.png)
[英]How to setup Authorization Hudson /Jenkins to clone your mercurial repository
[英]Jenkins, Kiln and Mercurial: abort: http authorization required for [repository]
我已經升級了操作系統和從Windows XP運行的Jenkins和一個古老的Jenkins版本(2012年安裝)。 所以現在我使用的是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做,並具有之間hg showconfig --debug
在詹金斯窗口批處理命令是以下2行:
read config from: C:\Windows\system32\config\systemprofile\mercurial.ini
read config from: C:\Windows\system32\config\systemprofile\.hgrc
但是我的系統上不存在這些文件。 因此,從理論上講,它應該是從相同的設置位置讀取所有內容,但事實並非如此。
有人有什么想法嗎?
謝謝!
無法發表評論,所以這是在“答案”下:根據你的評論,它找不到正確的'.hgrc'文件。 您是否嘗試在批處理命令中提供用戶名/密碼,例如Mercurial(HG)拉參數:用戶名和密碼 ?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.