Skip to content

Commit 5b34858

Browse files
Disable automatic test file validation (#730)
1 parent dd871f5 commit 5b34858

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/main/java/hudson/tasks/junit/JUnitResultArchiver.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
import hudson.model.AbstractProject;
3636
import hudson.model.BuildListener;
3737
import hudson.model.Descriptor;
38-
import hudson.model.Item;
3938
import hudson.model.Result;
4039
import hudson.model.Run;
4140
import hudson.model.Saveable;
@@ -59,7 +58,6 @@
5958
import jenkins.tasks.SimpleBuildStep;
6059
import org.apache.tools.ant.DirectoryScanner;
6160
import org.apache.tools.ant.types.FileSet;
62-
import org.kohsuke.stapler.AncestorInPath;
6361
import org.kohsuke.stapler.DataBoundConstructor;
6462
import org.kohsuke.stapler.DataBoundSetter;
6563
import org.kohsuke.stapler.QueryParameter;
@@ -546,22 +544,6 @@ public String getDisplayName() {
546544
return Messages.JUnitResultArchiver_DisplayName();
547545
}
548546

549-
/**
550-
* Performs on-the-fly validation on the file mask wildcard.
551-
* @param project Project.
552-
* @param value File mask to validate.
553-
*
554-
* @return the validation result.
555-
* @throws IOException if an error occurs.
556-
*/
557-
public FormValidation doCheckTestResults(@AncestorInPath AbstractProject project, @QueryParameter String value)
558-
throws IOException {
559-
if (project == null || !project.hasPermission(Item.WORKSPACE)) {
560-
return FormValidation.ok();
561-
}
562-
return FilePath.validateFileMask(project.getSomeWorkspace(), value);
563-
}
564-
565547
@Override
566548
public boolean isApplicable(Class<? extends AbstractProject> jobType) {
567549
return true;

0 commit comments

Comments
 (0)