我有一個OS X服務器(獅子)jenkins安裝,我希望它調用一個ant腳本來編譯一個sigle示例項目。jenkins螞蟻調用和常春藤任務
的istallation有一個專門的用戶,「詹金斯」,如果我從ssh實例登錄他,我可以成功運行與編譯任務(這是使用常春藤的任務):
jenkins>ant compile
問題開始時螞蟻是通過Web界面調用,收到此錯誤:
Problem: failed to create task or type antlib:org.apache.ivy.ant:resolve
原因:螞蟻不會從庫中加載正確的常春藤的決心任務。我真的不明白這個問題。我相信詹金斯以「詹金斯」用戶的身份運行命令。
編輯:更多信息
BUILD FAILED
/Users/Shared/Jenkins/Home/jobs/example-build/workspace/build.xml:19: Problem: failed to create task or type antlib:org.apache.ivy.ant:resolve
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet
This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
-/usr/share/ant/lib
-/Users/Shared/Jenkins/Home/.ant/lib
-a directory added on the command line with the -lib argument
Total time: 0 seconds
Build step 'Invoke Ant' marked build as failure
Finished: FAILURE
請發佈完整的堆棧跟蹤,看起來像是常春藤庫不在螞蟻類路徑 – oers 2012-07-09 10:33:52
編輯該問題。 – 2012-07-09 10:53:02
你從哪裏安裝常春藤罐子? – Matteo 2012-07-09 11:21:14