Class Build
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
Branch
Branch name (e.g., "main", "feature/xyz").
public string Branch { get; set; }
Property Value
CanCancel
Whether the build can be cancelled.
public bool CanCancel { get; }
Property Value
CanRetry
Whether the build can be retried.
public bool CanRetry { get; }
Property Value
CommitAuthor
Commit author name.
public string? CommitAuthor { get; set; }
Property Value
CommitMessage
Commit message (first line).
public string? CommitMessage { get; set; }
Property Value
CommitSha
Full commit SHA being built.
public string CommitSha { get; set; }
Property Value
Duration
Total build duration. Stored for quick access.
public TimeSpan? Duration { get; set; }
Property Value
ErrorMessage
Error message if the build failed.
public string? ErrorMessage { get; set; }
Property Value
FinishedAt
When the build finished (success, failure, or cancellation).
public DateTime? FinishedAt { get; set; }
Property Value
HangfireJobId
Hangfire job ID for cancellation support.
public string? HangfireJobId { get; set; }
Property Value
Id
Unique identifier for this build.
public int Id { get; set; }
Property Value
IsFinished
Whether the build is in a terminal state.
public bool IsFinished { get; }
Property Value
LogEntries
Log entries for this build.
public ICollection<BuildLogEntry> LogEntries { get; set; }
Property Value
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
Project
The project this build belongs to.
public Project Project { get; set; }
Property Value
ProjectId
ID of the project this build belongs to.
public int ProjectId { get; set; }
Property Value
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
ShortCommitSha
Short commit SHA for display (first 8 characters).
public string ShortCommitSha { get; }
Property Value
StartedAt
When the build started executing.
public DateTime? StartedAt { get; set; }
Property Value
Status
Current build status.
public BuildStatus Status { get; set; }
Property Value
StepsCompleted
Number of steps that completed successfully.
public int StepsCompleted { get; set; }
Property Value
StepsFailed
Number of steps that failed.
public int StepsFailed { get; set; }
Property Value
StepsTotal
Total number of build steps.
public int StepsTotal { get; set; }
Property Value
Trigger
What triggered this build.
public BuildTrigger Trigger { get; set; }