private void recordMachineInfo() { MachineInfo machineInfo = this.inspector.getJobStatus().getProperties().getReproductionBuggyBuild().getMachineInfo(); machineInfo.setNumberCPU(Runtime.getRuntime().availableProcessors()); machineInfo.setFreeMemory(Runtime.getRuntime().freeMemory()); machineInfo.setTotalMemory(Runtime.getRuntime().totalMemory()); }
Date reproductionDateBeginning = inspector.getJobStatus().getProperties().getReproductionBuggyBuild().getReproductionDateBeginning(); reproductionDateBeginning = reproductionDateBeginning == null ? new Date() : reproductionDateBeginning; this.addDate(element, "reproductionDate", reproductionDateBeginning);
public void execute() { List<AbstractStep> steps = this.inspector.getSteps(); this.getLogger().debug("----------------------------------------------------------------------"); this.getLogger().debug("STEP "+ (steps.indexOf(this) + 1)+"/"+ steps.size() +": "+this.name); this.getLogger().debug("----------------------------------------------------------------------"); this.dateBegin = new Date(); this.stepStatus = this.businessExecute(); this.dateEnd = new Date(); this.getLogger().debug("STEP STATUS: "+this.stepStatus); this.getLogger().debug("STEP DURATION: "+getDuration()+"s"); this.inspector.getJobStatus().addStepDuration(this.name, getDuration()); this.inspector.getJobStatus().addFreeMemoryByStep(this.name, Runtime.getRuntime().freeMemory()); ReproductionBuggyBuild reproductionBuggyBuild = this.inspector.getJobStatus().getProperties().getReproductionBuggyBuild(); reproductionBuggyBuild.addStep(this); this.inspector.getJobStatus().addStepStatus(this.stepStatus); this.shouldStop = this.shouldStop || (this.isBlockingStep() && !this.stepStatus.isSuccess()); if (!this.shouldStop) { this.getLogger().debug("EXECUTE NEXT STEP"); this.executeNextStep(); } else { this.getLogger().debug("TERMINATE PIPELINE"); this.terminatePipeline(); } }
protected String getPom() { if (!pomLocationTested) { testPomLocation(); this.inspector.getJobStatus().getProperties().getReproductionBuggyBuild() .setProjectRootPomPath(this.inspector.getJobStatus().getPomDirPath() + File.separator + Utils.POM_FILE); } return this.inspector.getJobStatus().getPomDirPath() + File.separator + Utils.POM_FILE; }
MachineInfo machineInfo = properties.getReproductionBuggyBuild().getMachineInfo(); machineInfo.setHostName(Utils.getHostname());