Skip to content
Browse files

[FIXED JENKINS-13704] Unable to start a concurrent build when there a…

…re nodeParameterValues
  • Loading branch information...
imod committed May 11, 2012
1 parent f0f006a commit 15bbd1ad02391476d98e5ad5b17e9be15a386450
@@ -14,7 +14,6 @@

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.logging.Logger;

@@ -106,8 +105,7 @@ private void triggerAllBuildsConcurrent(AbstractBuild build, BuildListener liste
final List<String> singleNodeList = new ArrayList<String>();
final NodeParameterValue nodeParameterValue = new NodeParameterValue(nodeName, singleNodeList);
List<ParameterValue> copies = new ArrayList<ParameterValue>(newPrams.size());
Collections.copy(copies, newPrams);
List<ParameterValue> copies = new ArrayList<ParameterValue>(newPrams);
copies.add(nodeParameterValue); // where to do the next build
listener.getLogger().print("schedule build on node " + nodeName);
build.getProject().scheduleBuild(0, new NextLabelCause(nodeName), new ParametersAction(copies));

0 comments on commit 15bbd1a

Please sign in to comment.
You can’t perform that action at this time.