@Test public void testBuildProject() throws IOException { long buildId = 207924136; Build build = this.checkBuildAndReturn(buildId, false); tmpDir = Files.createTempDirectory("test_build").toFile(); BuildToBeInspected toBeInspected = new BuildToBeInspected(build, null, ScannedBuildStatus.ONLY_FAIL, ""); JobStatus jobStatus = new JobStatus(tmpDir.getAbsolutePath()+"/repo"); ProjectInspector inspector = ProjectInspectorMocker.mockProjectInspector(jobStatus, tmpDir, toBeInspected, CheckoutType.CHECKOUT_BUGGY_BUILD); CloneRepository cloneStep = new CloneRepository(inspector); BuildProject buildStep = new BuildProject(inspector); cloneStep.addNextStep(new CheckoutBuggyBuild(inspector, true)).addNextStep(buildStep); cloneStep.execute(); assertThat(buildStep.isShouldStop(), is(false)); List<StepStatus> stepStatusList = jobStatus.getStepStatuses(); assertThat(stepStatusList.size(), is(3)); StepStatus statusBuild = stepStatusList.get(2); assertThat(statusBuild.getStep(), is(buildStep)); for (StepStatus stepStatus : stepStatusList) { assertThat(stepStatus.isSuccess(), is(true)); } }
public BuildProject(ProjectInspector inspector) { super(inspector, true); }
BuildProject extends AbstractStep { public BuildProject(ProjectInspector inspector) { super(inspector, true); } }
BuildProject extends AbstractStep { public BuildProject(ProjectInspector inspector) { super(inspector, true); } BuildProject(ProjectInspector inspector);  BuildProject(ProjectInspector inspector, boolean blockingStep);  BuildProject(ProjectInspector inspector, boolean blockingStep, String stepName); }
BuildProject extends AbstractStep { public BuildProject(ProjectInspector inspector) { super(inspector, true); } BuildProject(ProjectInspector inspector);  BuildProject(ProjectInspector inspector, boolean blockingStep);  BuildProject(ProjectInspector inspector, boolean blockingStep, String stepName);  }
BuildProject extends AbstractStep { public BuildProject(ProjectInspector inspector) { super(inspector, true); } BuildProject(ProjectInspector inspector);  BuildProject(ProjectInspector inspector, boolean blockingStep);  BuildProject(ProjectInspector inspector, boolean blockingStep, String stepName);   }