【发布时间】:2014-02-12 09:55:54
【问题描述】:
jenkin for php 项目入门。
以下步骤已配置 1)下载jenkin-1.549 2)安装php插件checkstyle 3)添加项目示例zf2demo
zf2 演示中的 build.xml
<target name="phpcs" >
<exec executable="phpcs">
<arg line="--report=checkstyle
--report-file=${project.basedir}/build/logs/checkstyle.xml
--standard=Zend
${project.basedir}/*.php" />
</exec>
</target>
zf2demo/build 中的phpcs.xml
<ruleset name="zenddemo">
<description>Description of your coding standard</description>
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
<!-- ... -->
</ruleset>
构建成功运行 错误 未找到报告文件。配置错误?
在哪里配置报告文件?我们需要手动创建吗
还有什么需要配置才能生成报告?
在配置部分添加 构建后操作 发布 Checkstyle 分析结果
Checkstyle results
‘/build/checkstyle.xml’不匹配任何内容:‘’存在但不匹配‘/build/checkstyle.xml’
如何配置这些? 已编辑 从控制台运行时
【问题讨论】:
标签: php jenkins-plugins jenkins-php