diff --git a/src/main/java/hudson/plugins/robot/RobotPublisher.java b/src/main/java/hudson/plugins/robot/RobotPublisher.java index f35c426..a819989 100755 --- a/src/main/java/hudson/plugins/robot/RobotPublisher.java +++ b/src/main/java/hudson/plugins/robot/RobotPublisher.java @@ -270,10 +270,10 @@ public void perform(Run build, @Nonnull FilePath workspace, @Nonnull EnvVa // Check if log and report files exist FilePath outputDir = new FilePath(workspace, expandedOutputPath); - if (!new FilePath(outputDir, expandedLogFileName).exists()) { + if (outputDir.list(expandedLogFileName).length == 0) { logger.println(Messages.robot_publisher_file_not_found() + " " + expandedLogFileName); } - if (!new FilePath(outputDir, expandedReportFileName).exists()) { + if (outputDir.list(expandedReportFileName).length == 0) { logger.println(Messages.robot_publisher_file_not_found() + " " + expandedReportFileName); }