我有一个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