@Exported public List<String> getRestartableStages() { List<String> stages = new ArrayList<>(); FlowExecution execution = getExecution(); if (execution != null) { ExecutionModelAction execAction = run.getAction(ExecutionModelAction.class); if (execAction != null) { if (execAction.getStages() != null) { for (ModelASTStage s : execAction.getStages().getStages()) { if (!Utils.stageHasStatusOf(s.getName(), execution, StageStatus.getSkippedForFailure(), StageStatus.getSkippedForUnstable())) { stages.add(s.getName()); } } } } } return stages; }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (getName() != null ? getName().hashCode() : 0); result = 31 * result + (getAgent() != null ? getAgent().hashCode() : 0); result = 31 * result + (getBranches() != null ? getBranches().hashCode() : 0); result = 31 * result + (getWhen() != null ? getWhen().hashCode() : 0); result = 31 * result + (getPost() != null ? getPost().hashCode() : 0); result = 31 * result + (getTools() != null ? getTools().hashCode() : 0); result = 31 * result + (getEnvironment() != null ? getEnvironment().hashCode() : 0); result = 31 * result + (getFailFast() != null ? getFailFast().hashCode() : 0); result = 31 * result + (getParallel() != null ? getParallel().hashCode() : 0); return result; } }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (getName() != null ? getName().hashCode() : 0); result = 31 * result + (getAgent() != null ? getAgent().hashCode() : 0); result = 31 * result + (getWhen() != null ? getWhen().hashCode() : 0); result = 31 * result + (getPost() != null ? getPost().hashCode() : 0); result = 31 * result + (getTools() != null ? getTools().hashCode() : 0); result = 31 * result + (getEnvironment() != null ? getEnvironment().hashCode() : 0); result = 31 * result + (getStages() != null ? getStages().hashCode() : 0); result = 31 * result + (getBranches() != null ? getBranches().hashCode() : 0); result = 31 * result + (getFailFast() != null ? getFailFast().hashCode() : 0); result = 31 * result + (getParallel() != null ? getParallel().hashCode() : 0); result = 31 * result + (getOptions() != null ? getOptions().hashCode() : 0); result = 31 * result + (getInput() != null ? getInput().hashCode() : 0); result = 31 * result + (getParallelContent() != null ? getParallelContent().hashCode() : 0); return result; } }