本文介绍了Hudson不断与Phing和Ant失败。任何提示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我们直接跳到好的东西...



运行Ant时,我从控制台得到的错误 p>

  phpunit:
[exec] PHPUnit 3.2.16 by Sebastian Bergmann。
[exec]
[exec] / var / lib / hudson / jobs /目标/工作区/目标中找不到类/ var / lib / hudson / jobs /目标/工作区/目标/ AllTests /AllTests.php。
[exec]结果:1

phpcpd:
[exec]引用的参数--log-pmd = / var / lib / hudson / jobs / Goals / build / logs / pmd.xml'未注册。
[exec]结果:1

pdepend:
[exec] ALERT - 脚本尝试将memory_limit增加到4294967295字节,高于允许值(攻击者'REMOTE_ADDR not set' ,文件'/ usr / bin / pdepend',第57行)
[exec] PHP_Depend 0.9.16 by Manuel Pichler
[exec]
[exec] hudson / jobs / Goals / workspace / Goals / build / logs / phpdepend.xml'。
[exec]结果:2

phpcs:
[exec]错误:文件/ var / lib / hudson / jobs / Goals / workspace / Goals / build / logs /checkstyle.xml不存在。

运行Phing时

  [CHECKSTYLE]收集checkstyle分析文件... 
[CHECKSTYLE]成功解析文件/ var / lib / hudson / jobs /包含1个警告的模块日志的logs / checkstyle.xml。
[WARNINGS]解析控制台日志中的警告...
[TASKS]扫描工作空间文件以进行任务...
[DRY]收集重复的代码分析文件...
发布Javadoc
[JDepend] JDepend插件就绪
[JDepend]无法在'build / logs / phpdepend.xml'java.io.FileNotFoundException:/ var / lib / hudson / jobs /目标/ workspace / build / logs / phpdepend.xml(没有这样的文件或目录)
发布Clover coverage报告...
Clover xml文件不存在:/ var / lib / hudson /目标/工作区/构建/覆盖调用:clover.xml,不会被复制到:/var/lib/hudson/jobs/Goals/builds/2010-07-12_02-31-04/clover.xml
找不到build / coverage / clover.xml。您是否为Clover生成了XML报告?
[xUnit]开始记录。
[xUnit]无法创建路径/ var / lib / hudson / jobs / Goals / workspace / generatedJUnitFiles。可能目录已存在。
[xUnit] [PHPUnit-5.1.6(默认)] - 相对于/ var / lib / hudson / jobs / Goals / workspace'处理1个文件build / logs / *。
[xUnit] [WARNING] - 文件'/var/lib/hudson/jobs/Goals/workspace/build/logs/checkstyle.xml'是无效的文件。它已被忽略。
[xUnit]插件未正确执行:java.io.IOException:未找到测试报告文件。配置错误?
GitAPI created
[workspace] $ / usr / bin / git tag -d hudson-Goals-31
[workspace] $ / usr / bin / git tag -a -f -m Hudson Build#31hudson-Goals-31-FAILURE

错误?我得到它在本地构建只是罚款。在我的VPS我们得到所有这些混乱。

解决方案

看起来你有一些路径问题。您的路径 /var/lib/hudson/jobs/Goals/workspace/Goals/build/logs/phpdepend.xml 似乎是一个文件,而不是路径。



xml'
已添加。



Let's just skip right to the good stuff...

errors I'm getting from the console when running Ant:

phpunit:
     [exec] PHPUnit 3.2.16 by Sebastian Bergmann.
     [exec] 
     [exec] Class /var/lib/hudson/jobs/Goals/workspace/Goals/AllTests could not be found in /var/lib/hudson/jobs/Goals/workspace/Goals/AllTests.php.
     [exec] Result: 1

phpcpd:
     [exec] The referenced parameter '--log-pmd=/var/lib/hudson/jobs/Goals/workspace/Goals/build/logs/pmd.xml' is not registered.
     [exec] Result: 1

pdepend:
     [exec] ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file '/usr/bin/pdepend', line 57)
     [exec] PHP_Depend 0.9.16 by Manuel Pichler
     [exec] 
     [exec] Invalid directory '/var/lib/hudson/jobs/Goals/workspace/Goals/build/logs/phpdepend.xml' added.
     [exec] Result: 2

phpcs:
     [exec] ERROR: The file "/var/lib/hudson/jobs/Goals/workspace/Goals/build/logs/checkstyle.xml" does not exist.

And when running Phing:

[CHECKSTYLE] Collecting checkstyle analysis files...
[CHECKSTYLE] Successfully parsed file /var/lib/hudson/jobs/Goals/workspace/build/logs/checkstyle.xml of module logs with 1 warnings.
[WARNINGS] Parsing warnings in console log...
[TASKS] Scanning workspace files for tasks...
[DRY] Collecting duplicate code analysis files...
Publishing Javadoc
[JDepend] JDepend plugin is ready
[JDepend] Couldn't generate JDepend file at 'build/logs/phpdepend.xml'java.io.FileNotFoundException: /var/lib/hudson/jobs/Goals/workspace/build/logs/phpdepend.xml (No such file or directory)
Publishing Clover coverage report...
Clover xml file does not exist in: /var/lib/hudson/jobs/Goals/workspace/build/coverage called: clover.xml and will not be copied to: /var/lib/hudson/jobs/Goals/builds/2010-07-12_02-31-04/clover.xml
Could not find 'build/coverage/clover.xml'.  Did you generate the XML report for Clover?
[xUnit] Starting to record.
[xUnit] Can't create the path /var/lib/hudson/jobs/Goals/workspace/generatedJUnitFiles. Maybe the directory already exists.
[xUnit] [PHPUnit-5.1.6 (default)] - Processing 1 files with the pattern 'build/logs/*.xml' relative to '/var/lib/hudson/jobs/Goals/workspace'.
[xUnit] [WARNING] - The file '/var/lib/hudson/jobs/Goals/workspace/build/logs/checkstyle.xml' is an invalid file. It has been ignored.
[xUnit] The plugin hasn't been performed correctly: java.io.IOException: No test report files were found. Configuration error?
GitAPI created
[workspace] $ /usr/bin/git tag -d hudson-Goals-31
[workspace] $ /usr/bin/git tag -a -f -m "Hudson Build #31" hudson-Goals-31-FAILURE

So, any ideas what's going wrong? I get it to build just fine locally. On my VPS we get all this mess.

解决方案

Looks like you have some path issues. You path /var/lib/hudson/jobs/Goals/workspace/Goals/build/logs/phpdepend.xml seems to be a file, not a path.

这篇关于Hudson不断与Phing和Ant失败。任何提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-21 22:47