pub struct BuildStatus {
pub cancelled: Option<bool>,
pub completion_timestamp: Option<Time>,
pub config: Option<ObjectReference>,
pub duration: Option<i64>,
pub log_snippet: Option<String>,
pub message: Option<String>,
pub output: Option<BuildStatusOutput>,
pub output_docker_image_reference: Option<String>,
pub phase: String,
pub reason: Option<String>,
pub stages: Option<Vec<StageInfo>>,
pub start_timestamp: Option<Time>,
}
Expand description
BuildStatus contains the status of a build
Fields§
§cancelled: Option<bool>
cancelled describes if a cancel event was triggered for the build.
completion_timestamp: Option<Time>
completionTimestamp is a timestamp representing the server time when this Build was finished, whether that build failed or succeeded. It reflects the time at which the Pod running the Build terminated. It is represented in RFC3339 form and is in UTC.
config: Option<ObjectReference>
config is an ObjectReference to the BuildConfig this Build is based on.
duration: Option<i64>
duration contains time.Duration object describing build time.
log_snippet: Option<String>
logSnippet is the last few lines of the build log. This value is only set for builds that failed.
message: Option<String>
message is a human-readable message indicating details about why the build has this status.
output: Option<BuildStatusOutput>
output describes the container image the build has produced.
output_docker_image_reference: Option<String>
outputDockerImageReference contains a reference to the container image that will be built by this build. Its value is computed from Build.Spec.Output.To, and should include the registry address, so that it can be used to push and pull the image.
phase: String
phase is the point in the build lifecycle. Possible values are “New”, “Pending”, “Running”, “Complete”, “Failed”, “Error”, and “Cancelled”.
reason: Option<String>
reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.
stages: Option<Vec<StageInfo>>
stages contains details about each stage that occurs during the build including start time, duration (in milliseconds), and the steps that occured within each stage.
start_timestamp: Option<Time>
startTimestamp is a timestamp representing the server time when this Build started running in a Pod. It is represented in RFC3339 form and is in UTC.
Trait Implementations§
Source§impl Clone for BuildStatus
impl Clone for BuildStatus
Source§fn clone(&self) -> BuildStatus
fn clone(&self) -> BuildStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more