protected StepStatus businessExecute() { this.getLogger().debug("Checking out buggy build candidate..."); super.setCheckoutType(CheckoutType.CHECKOUT_BUGGY_BUILD); this.getInspector().setCheckoutType(CheckoutType.CHECKOUT_BUGGY_BUILD); return super.businessExecute(); }
protected StepStatus businessExecute() { this.getLogger().debug("Checking out patched build candidate..."); if (this.getInspector().getPatchedBuild() != null) { super.setCheckoutType(CheckoutType.CHECKOUT_PATCHED_BUILD); StepStatus stepStatus = super.businessExecute(); this.getInspector().setCheckoutType(CheckoutType.CHECKOUT_PATCHED_BUILD); return stepStatus; } else { this.addStepError("There is no patched build retrieved. This will stop now."); return StepStatus.buildError(this, PipelineState.BUILDNOTCHECKEDOUT); } }
protected StepStatus businessExecute() { this.getLogger().debug("Checking out the test code of the buggy build candidate..."); if (this.getInspector().getJobStatus().getTestDir() == null) { this.addStepError("Test code dir is null: it is therefore impossible to continue."); return StepStatus.buildError(this, PipelineState.TESTDIRNOTCOMPUTED); } super.setCheckoutType(CheckoutType.CHECKOUT_BUGGY_BUILD_TEST_CODE); StepStatus stepStatus = super.businessExecute(); this.getInspector().setCheckoutType(CheckoutType.CHECKOUT_BUGGY_BUILD_TEST_CODE); return stepStatus; }
protected StepStatus businessExecute() { this.getLogger().debug("Checking out the source code of the buggy build candidate..."); if (this.getInspector().getJobStatus().getRepairSourceDir() == null) { this.addStepError("Source code dir is null: it is therefore impossible to continue."); return StepStatus.buildError(this, PipelineState.SOURCEDIRNOTCOMPUTED); } super.setCheckoutType(CheckoutType.CHECKOUT_PATCHED_BUILD); StepStatus stepStatus = super.businessExecute(); if (stepStatus.isSuccess()) { super.setCheckoutType(CheckoutType.CHECKOUT_BUGGY_BUILD_SOURCE_CODE); stepStatus = super.businessExecute(); } this.getInspector().setCheckoutType(getCheckoutType()); return stepStatus; }