python - Jenkins 无法从资源 AntTasks.properties 加载定义

标签 python ant jenkins

演示在这里: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/

相关文章:

python - 列表中项目的重复索引

java - Ant 在执行时随机挂起

ant - 使用 Ant 将文件和文件夹复制到 WEB-INF

jenkins - 如果我们可以直接暴露80端口,那么反向代理有什么好处呢?

python - 如何折叠/累积一个 numpy 矩阵乘积(点)?

python - 如何在 sqlalchemy 中将列重置为其默认值?

python - pandas 数据透视表,通过多列的差异创建表

Ant 任务检查目标目录中的重复文件

shell - Powershell脚本在Jenkins中没有失败

jenkins - LDAP 身份验证不适用于 Jenkins