|
35 | 35 | import hudson.model.AbstractProject;
|
36 | 36 | import hudson.model.BuildListener;
|
37 | 37 | import hudson.model.Descriptor;
|
38 |
| -import hudson.model.Item; |
39 | 38 | import hudson.model.Result;
|
40 | 39 | import hudson.model.Run;
|
41 | 40 | import hudson.model.Saveable;
|
|
59 | 58 | import jenkins.tasks.SimpleBuildStep;
|
60 | 59 | import org.apache.tools.ant.DirectoryScanner;
|
61 | 60 | import org.apache.tools.ant.types.FileSet;
|
62 |
| -import org.kohsuke.stapler.AncestorInPath; |
63 | 61 | import org.kohsuke.stapler.DataBoundConstructor;
|
64 | 62 | import org.kohsuke.stapler.DataBoundSetter;
|
65 | 63 | import org.kohsuke.stapler.QueryParameter;
|
@@ -546,22 +544,6 @@ public String getDisplayName() {
|
546 | 544 | return Messages.JUnitResultArchiver_DisplayName();
|
547 | 545 | }
|
548 | 546 |
|
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 |
| - |
565 | 547 | @Override
|
566 | 548 | public boolean isApplicable(Class<? extends AbstractProject> jobType) {
|
567 | 549 | return true;
|
|
0 commit comments