com.danielflower.restabuild.build.BuildStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of restabuild Show documentation
Show all versions of restabuild Show documentation
Builds Git-hosted projects via a REST API
package com.danielflower.restabuild.build;
public enum BuildStatus {
QUEUED(false), IN_PROGRESS(false), SUCCESS(true), FAILURE(true), CANCELLING(false), CANCELLED(true), TIMED_OUT(true);
private final boolean endState;
BuildStatus(boolean endState) {
this.endState = endState;
}
public boolean endState() {
return endState;
}
public boolean isCancellable() { return !endState && this != CANCELLING; }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy