I'm using jenkins ant to generate a html report via the build.xml
<property name="report.dir" value="test\reports" />
<target name="generateReport">
<junitreport todir="${report.dir}">
<fileset dir="${report.dir}">
<include name="*.xml" />
</fileset>`
<report format="frames" styledir="C:\program files (x86)\apache-ant-1.9.16\etc" todir="./report/html" />
</junitreport>
</target>
</project>
if the jenkins build is successful it will generate a html report immediately but if failed it will not, the failed report will only get generated if the next build is successful. I wonder if there is any solution to solve this?
Thanks