Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
[FIXED JENKINS-12075] Added flattening of configuration for m2 jobs.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Dec 12, 2011
1 parent afadec9 commit c02743a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/hudson/plugins/analysis/core/ReporterDescriptor.java
@@ -1,6 +1,9 @@
package hudson.plugins.analysis.core;

import net.sf.json.JSONObject;

import org.kohsuke.stapler.QueryParameter;
import org.kohsuke.stapler.StaplerRequest;

import hudson.maven.MavenReporter;
import hudson.maven.MavenReporterDescriptor;
Expand Down Expand Up @@ -69,4 +72,11 @@ public final FormValidation doCheckThreshold(@QueryParameter final String thresh
public final FormValidation doCheckHeight(@QueryParameter final String height) {
return publisherDescriptor.doCheckHeight(height);
}

/** {@inheritDoc} */
@Override
public MavenReporter newInstance(final StaplerRequest req, final JSONObject formData)
throws hudson.model.Descriptor.FormException {
return super.newInstance(req, PluginDescriptor.convertHierarchicalFormData(formData));
}
}

0 comments on commit c02743a

Please sign in to comment.