DumbSlave slave0 = createOnlineSlave();
DumbSlave slave1 = createOnlineSlave();
Project<?,?> projectA = createFreeStyleProject("projectA");
projectA.getPublishersList().add(
new BuildTrigger(new BuildTriggerConfig("projectB", ResultCondition.SUCCESS, new NodeParameters())));
projectA.setAssignedNode(slave0);
CaptureEnvironmentBuilder builder = new CaptureEnvironmentBuilder();
Project projectB = createFreeStyleProject("projectB");