Skip to content

Commit

Permalink
[FIXED JENKINS-13704] Unable to start a concurrent build when there a…
Browse files Browse the repository at this point in the history
…re nodeParameterValues
  • Loading branch information
imod committed May 11, 2012
1 parent f0f006a commit 15bbd1a
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -14,7 +14,6 @@

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

Expand Down Expand Up @@ -106,8 +105,7 @@ private void triggerAllBuildsConcurrent(AbstractBuild build, BuildListener liste
final List<String> singleNodeList = new ArrayList<String>();
singleNodeList.add(nodeName);
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));
Expand Down

0 comments on commit 15bbd1a

Please sign in to comment.