2016-11-02 54 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 

但這些文件不會在我的系統上存在。所以,從理論上講,它應該從相同的設置位置讀取所有內容,但事實並非如此。

有人有什麼想法嗎?

謝謝!

回答