演示在这里: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
最佳答案
在“apache-ant-1.9.2\lib”中添加了 pyAntTasks-1.3.3.jar
关于python - Jenkins 无法从资源 AntTasks.properties 加载定义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26644423/