演示在这里:http://www.ibm.com/developerworks/cn/opensource/os-ecant/
我想在Jenkins上运行此演示,但构建失败。
Started by user anonymous
Building on master in workspace C:\Users\IBM_ADMIN\.jenkins\workspace\antPythonTry1
Updating https://localhost/svn/test at revision '2014-10-30T11:06:06.839 +0800'
At revision 1
no change for https://localhost/svn/test since the previous build
[antPythonTry1] $ cmd.exe /C '"ant.bat && exit %%ERRORLEVEL%%"'
Buildfile: C:\Users\IBM_ADMIN\.jenkins\workspace\antPythonTry1\build.xml
[taskdef] Could not load definitions from resource pyAntTasks.properties. It could not be found.
compile:
BUILD FAILED
C:\Users\IBM_ADMIN\.jenkins\workspace\antPythonTry1\build.xml:37: Problem: failed to create task or type py-compile
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.
Total time: 0 seconds
Build step 'Invoke Ant' marked build as failure
Finished: FAILURE
答案 0 :(得分:1)
在&#34; apache-ant-1.9.2 \ lib&#34;
中添加了pyAntTasks-1.3.3.jar