fixed IllegalArgumentException in submitting configuration of the maven2 job (#1410)

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7713 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-03-13 23:14:36 +00:00
1 parent a6b889b561
commit be9a29007e
1 file changed
+4 -3
@@ -25,6 +25,7 @@ import hudson.tasks.BuildWrapper;
import hudson.tasks.BuildWrappers;
import hudson.tasks.Builder;
import hudson.tasks.Publisher;
import hudson.tasks.BuildStepDescriptor;
import hudson.util.CopyOnWriteMap;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
@@ -420,9 +421,9 @@ public class MatrixProject extends AbstractProject<MatrixProject,MatrixBuild> im
newAxes.add(Axis.parsePrefixed(req,"label"));
this.axes = newAxes;
buildWrappers = buildDescribable(req, BuildWrappers.WRAPPERS, "wrapper");
builders = buildDescribable(req, BuildStep.BUILDERS, "builder");
publishers = buildDescribable(req, BuildStep.PUBLISHERS, "publisher");
buildWrappers = buildDescribable(req, BuildWrappers.getFor(this), "wrapper");
builders = buildDescribable(req, BuildStepDescriptor.filter(BuildStep.BUILDERS,getClass()), "builder");
publishers = buildDescribable(req, BuildStepDescriptor.filter(BuildStep.PUBLISHERS,getClass()), "publisher");
updateTransientActions(); // to pick up transient actions from builder, publisher, etc.
rebuildConfigurations();