List of usage examples for com.amazonaws.services.codebuild.model BuildPhase setPhaseStatus
public void setPhaseStatus(StatusType phaseStatus)
The current status 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"); }/*from ww w. j a v a2s .c o m*/ } latest.setDurationInSeconds(0L); } }