diff --git a/src/main/java/hudson/tasks/junit/JUnitResultArchiver.java b/src/main/java/hudson/tasks/junit/JUnitResultArchiver.java index 2051c9e9a..a50d255e7 100644 --- a/src/main/java/hudson/tasks/junit/JUnitResultArchiver.java +++ b/src/main/java/hudson/tasks/junit/JUnitResultArchiver.java @@ -554,12 +554,13 @@ public String getDisplayName() { * @return the validation result. * @throws IOException if an error occurs. */ - public FormValidation doCheckTestResults(@AncestorInPath AbstractProject project, @QueryParameter String value) + public FormValidation doValidateTestResults( + @AncestorInPath AbstractProject project, @QueryParameter("testResults") String testResults) throws IOException { if (project == null || !project.hasPermission(Item.WORKSPACE)) { return FormValidation.ok(); } - return FilePath.validateFileMask(project.getSomeWorkspace(), value); + return FilePath.validateFileMask(project.getSomeWorkspace(), testResults); } @Override diff --git a/src/main/resources/hudson/tasks/junit/JUnitResultArchiver/config.jelly b/src/main/resources/hudson/tasks/junit/JUnitResultArchiver/config.jelly index 8a5024c18..37e078b43 100644 --- a/src/main/resources/hudson/tasks/junit/JUnitResultArchiver/config.jelly +++ b/src/main/resources/hudson/tasks/junit/JUnitResultArchiver/config.jelly @@ -29,6 +29,10 @@ THE SOFTWARE. + + ${%Note: Validation is optional. Only use the validate button in small workspaces to avoid memory issues.} + +