다음과 같은 문제점이 있습니다. Jenkins와 함께 빌드 할 때 checkstyle ant 태스크를 실행 중이며 해당 보고서가 생성되지만, 빌드가 완료되면 거기에 메시지가 표시됩니다. 오류 보고서를 찾을 수 없으므로 구문 분석하는 동안 오류가 발생했습니다. 나는 옳은 것으로 출판 될 보고서의 경로를 설정했다는 것을 확인했다. (xxx가 존재하지 않지만 이전 버전의 경로가 존재한다는 메시지를 약간 다르게 바꿀 때). 어떤 생각이 잘못된 것일까 요? Jenkins는 checkstyle 보고서를 게시하기 위해 어떤 형식을 기대합니까? 다음 build.xml을 사용하고 있습니다.Jenkins에서 checkstyle 보고서 게시
<taskdef
classpath="libs/checkstyle-5.6-all.jar"
resource="checkstyletask.properties" />
<target name="checkstyle" >
<checkstyle
config="checkstyle.xml"
failOnViolation="false" >
<fileset
dir="src"
includes="**/*.java" />
<formatter type="plain" />
<formatter type="xml" />
<formatter
toFile="checkstyle-result.xml"
type="xml" />
</checkstyle>
<style
style="checkstyle-noframes.xsl"
in="checkstyle-result.xml"
out="checkstyle-result.html" />
</target>
config는 sun-checkstyle
구성입니다.
도움 주셔서 감사합니다.
보고서의 기본 경로 (**/checkstyle-result.xml)가 실제로 작동하므로 보고서를 검색해야하는 경로로 아무 것도 쓰지 않았습니다. DI는 이전에이를/checkstyle- result.xml,하지만 분명히 잘못되었습니다 :/도움을 주셔서 감사합니다 :) –
asenovm