List of usage examples for com.amazonaws.services.codebuild.model BuildPhase getPhaseType
public String getPhaseType()
The name of the build phase.
From source file:CodeBuildAction.java
License:Open Source License
private void formatLatestPhase() { if (phases != null && !phases.isEmpty()) { BuildPhase latest = phases.get(phases.size() - 1); if (latest.getPhaseStatus() == null) { if (latest.getPhaseType().equals("COMPLETED")) { latest.setPhaseStatus(StatusType.SUCCEEDED.toString().toUpperCase(Locale.ENGLISH)); } else { latest.setPhaseStatus("IN PROGRESS"); }/* w w w . j a va2s .c om*/ } latest.setDurationInSeconds(0L); } }
From source file:CodeBuildAction.java
License:Open Source License
public String getErrorPhaseType() { BuildPhase errorPhase = getErrorPhase(); if (errorPhase == null) { return ""; } else {/*from w w w . ja va 2 s . c o m*/ return errorPhase.getPhaseType(); } }