Jenkins ant doesnt generate failed junitreport

10 views
Skip to first unread message

江南

unread,
Oct 14, 2021, 4:56:34 AM10/14/21
to Jenkins User Experience
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
Reply all
Reply to author
Forward
0 new messages