2
我的Jenkins服務器已停止能夠構建在bitbucket.org上託管的maven項目。該構建在本地運行,但Jenkins報告此錯誤:Jenkins訪問bitbucket.org上的Mercurial存儲庫存在問題
[workspace] $ hg incoming --quiet --bundle hg.bundle --template "<changeset node='{node}' author='{author|xmlescape}' rev='{rev}' date='{date}'><msg>{desc|xmlescape}</msg><added>{file_adds|stringify|xmlescape}</added><deleted>{file_dels|stringify|xmlescape}</deleted><files>{files|stringify|xmlescape}</files><parents>{parents}</parents></changeset>\n" --rev default
abort: no suitable response from remote hg!
ERROR: Failed to determine incoming changes
[workspace] $ hg log --rev . --template {node}
任何想法發生了什麼?
[編輯]
所以,我跑hg paths
,並得到了響應的tomcat的用戶是不可信的:
Not trusting file /usr/local/tomcat/.jenkins/jobs/Test/workspace/.hg/hgrc from untrusted user tomcat, group tomcat
運行hg incoming
爲tomcat的用戶
cd /usr/local/tomcat/.jenkins/jobs/Test/workspace
sudo -u tomcat hg incoming
我後一個錯誤說我的ssh密鑰的權限太開放了:
remote: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
remote: @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
remote: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
remote: Permissions 0620 for '/usr/local/tomcat/.ssh/id_rsa' are too open.
remote: It is recommended that your private key files are NOT accessible by others.
remote: This private key will be ignored.
remote: bad permissions: ignore key: /usr/local/tomcat/.ssh/id_rsa
remote: Permission denied (publickey).
abort: no suitable response from remote hg!
我設置的權限,現在詹金斯可以成功建立。
謝謝,我會接受你的答案,因爲它確實使我找到了解決方案。 – blank 2011-06-16 17:18:14
這就是我所要做的,因爲我無法訪問您在此過程中發現的信息。 – 2011-06-16 17:40:40
嗨Betwyr。請告訴你如何解決這個問題。謝謝! – Industrial 2011-07-31 21:30:05