【发布时间】:2012-08-30 14:18:58
【问题描述】:
所以我有一个 jenkins 工作来更新我的代码副本并为我的库生成 phpdoc,这一切都是通过 phing 完成的
当我在 de build.xml 中使用这些行时,它会生成 jsut 很好(但使用 phpdocumentor 1.4.4)
<target name="phpdoc">
<echo msg="PHP Documentor..." />
<phpdoc title="API Documentation"
destdir="/var/www/corelib"
sourcecode="yes"
output="HTML:Smarty:PHP">
<fileset dir="./library/Core">
<include name="**/*.php" />
</fileset>
</phpdoc>
</target>
我想使用新版本的phpdocumentor所以我用pear安装了它
pear install phpdoc/phpDocumentor-alpha
但是当我运行这个命令时(我在 phing 文档中找到了这个),jenkins 会打印“PHP documentor”,然后直接将构建标记为失败
<target name="phpdoc">
<echo msg="PHP Documentor..." />
<phpdoc2 title="API Documentation" destdir="/var/www/corelib" template="responsive">
<fileset dir="./library/Core">
<include name="**/*.php" />
</fileset>
</phpdoc2>
</target>
我在这台服务器上安装了 zendserver,但这不是问题,因为 phpdoc 1.4.4 运行良好
那我该如何解决呢?
【问题讨论】:
-
控制台日志显示什么输出?
-
我忘记了这个问题,但我会将解决方案作为答案发布(我已将其固定在 phpdocumentor 的 irc 频道)
标签: hudson jenkins phing zend-server phpdoc