if (pubStep.errorMessage != null && pubStep.errorMessage.contains("report not found")) ...
However, since some time the JUnit report step seems to just log a warning instead of failing this step with the aforementioned error message ("[...] report not found [...]"):
21:55:17,934 [master>publish>publish-integrationtests>publish-report-tests-integration@LAB21:8811] INFO - Running step...
21:55:17,935 [master>publish>publish-integrationtests>publish-report-tests-integration@LAB21:8811] WARN - There is no input file need publish for 'JUnit Report', [Dir: c:\qb3\workspace\trunk\all\integrationtests\osgi.integrationtest.test\report, Pattern: **/TEST-*.xml]
21:55:17,935 [master>publish>publish-integrationtests>publish-report-tests-integration@LAB21:8811] INFO - Executing post-execute script...
While we could adapt our customizations with hopefully moderate effort, I am still unsure if not failing the step as in the past is the right thing?