Example usage for com.amazonaws.services.codebuild.model BuildPhase getPhaseType

List of usage examples for com.amazonaws.services.codebuild.model BuildPhase getPhaseType

Introduction

In this page you can find the example usage for com.amazonaws.services.codebuild.model BuildPhase getPhaseType.

Prototype


public String getPhaseType() 

Source Link

Document

The name of the build phase.

Usage

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();
    }
}