RunListener listener = RunListener.all().get(DiskUsageBuildListener.class);
jenkins.getExtensionList(RunListener.class).remove(listener);
jenkins.setNumExecutors(0);
Slave slave1 = createSlave("slave1", new File(hudson.getRootDir(),"workspace1").getPath());
AxisList axes = new AxisList();
TextAxis axis1 = new TextAxis("axis","axis1 axis2 axis3");
axes.add(axis1);
MatrixProject project1 = createMatrixProject("project1");
project1.setAxes(axes);
project1.setAssignedNode(slave1);
buildAndAssertSuccess(project1);
MatrixProject project2 = createMatrixProject("project2");
AxisList axes2 = new AxisList();
TextAxis axis2 = new TextAxis("axis","axis1 axis2");
axes2.add(axis2);
project2.setAxes(axes2);
project2.setAssignedNode(slave1);
buildAndAssertSuccess(project2);
Slave slave2 = createSlave("slave2", new File(hudson.getRootDir(),"workspace2").getPath());