Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/343.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Jenkins无法从资源AntTasks.properties加载定义_Python_Ant_Jenkins - Fatal编程技术网

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

Python Jenkins无法从资源AntTasks.properties加载定义,python,ant,jenkins,Python,Ant,Jenkins,这里有演示: 我想在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 ht

这里有演示:

我想在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
由匿名用户启动
在工作区C:\Users\IBM\u ADMIN\.jenkins\workspace\antPythonTry1中的master上构建
更新https://localhost/svn/test 修订版“2014-10-30T11:06:06.839+0800”
第1次修订时
没有变化https://localhost/svn/test 自上次构建以来
[antPythonTry1]$cmd.exe/C''ant.bat&&exit%%ERRORLEVEL%%'
构建文件:C:\Users\IBM\u ADMIN\.jenkins\workspace\antPythonTry1\build.xml
[taskdef]无法从资源pyAntTasks.properties加载定义。找不到。
汇编:
构建失败
C:\Users\IBM\u ADMIN\.jenkins\workspace\antPythonTry1\build.xml:37:问题:无法创建任务或键入py compile
原因:名称未定义。
措施:检查拼写。
操作:检查是否已声明任何自定义任务/类型。
措施:检查是否发生了任何/声明。
总时间:0秒
生成步骤“调用Ant”将生成标记为失败
完成:失败

在“apache-ant-1.9.2\lib”中添加了pyAntTasks-1.3.3.jar

您缺少包含pyANT任务的jar。这需要放在ANT可以在启动时提取它的地方,通常是$ANT_HOME/lib或$HOME/.ANT/lib。是的,我添加了pyANT任务