Table of Contents

Class Build

Namespace
Ando.Server.Models
Assembly
Ando.Server.dll

A single build execution for a project.

public class Build
Inheritance
Build
Inherited Members

Properties

Artifacts

Artifacts produced by this build.

public ICollection<BuildArtifact> Artifacts { get; set; }

Property Value

ICollection<BuildArtifact>

Branch

Branch name (e.g., "main", "feature/xyz").

public string Branch { get; set; }

Property Value

string

CanCancel

Whether the build can be cancelled.

public bool CanCancel { get; }

Property Value

bool

CanRetry

Whether the build can be retried.

public bool CanRetry { get; }

Property Value

bool

CommitAuthor

Commit author name.

public string? CommitAuthor { get; set; }

Property Value

string

CommitMessage

Commit message (first line).

public string? CommitMessage { get; set; }

Property Value

string

CommitSha

Full commit SHA being built.

public string CommitSha { get; set; }

Property Value

string

Duration

Total build duration. Stored for quick access.

public TimeSpan? Duration { get; set; }

Property Value

TimeSpan?

ErrorMessage

Error message if the build failed.

public string? ErrorMessage { get; set; }

Property Value

string

FinishedAt

When the build finished (success, failure, or cancellation).

public DateTime? FinishedAt { get; set; }

Property Value

DateTime?

HangfireJobId

Hangfire job ID for cancellation support.

public string? HangfireJobId { get; set; }

Property Value

string

Id

Unique identifier for this build.

public int Id { get; set; }

Property Value

int

IsFinished

Whether the build is in a terminal state.

public bool IsFinished { get; }

Property Value

bool

LogEntries

Log entries for this build.

public ICollection<BuildLogEntry> LogEntries { get; set; }

Property Value

ICollection<BuildLogEntry>

Profile

Build profile used for this build (copied from the project's selected profile when queued). Null means default build (no profile).

public string? Profile { get; set; }

Property Value

string

Project

The project this build belongs to.

public Project Project { get; set; }

Property Value

Project

ProjectId

ID of the project this build belongs to.

public int ProjectId { get; set; }

Property Value

int

PullRequestNumber

Pull request number if this is a PR build.

public int? PullRequestNumber { get; set; }

Property Value

int?

QueuedAt

When the build was queued.

public DateTime QueuedAt { get; set; }

Property Value

DateTime

ShortCommitSha

Short commit SHA for display (first 8 characters).

public string ShortCommitSha { get; }

Property Value

string

StartedAt

When the build started executing.

public DateTime? StartedAt { get; set; }

Property Value

DateTime?

Status

Current build status.

public BuildStatus Status { get; set; }

Property Value

BuildStatus

StepsCompleted

Number of steps that completed successfully.

public int StepsCompleted { get; set; }

Property Value

int

StepsFailed

Number of steps that failed.

public int StepsFailed { get; set; }

Property Value

int

StepsTotal

Total number of build steps.

public int StepsTotal { get; set; }

Property Value

int

Trigger

What triggered this build.

public BuildTrigger Trigger { get; set; }

Property Value

BuildTrigger