Package-level declarations

Types

Link copied to clipboard
@Serializable
data class Adjustment(val skip: Skip? = null, val softFail: SoftFail? = null, val with: With)

An adjustment to a Build Matrix

Link copied to clipboard
@Serializable
sealed interface Agents
Link copied to clipboard
@Serializable
sealed interface Automatic

Whether to allow a job to retry automatically. If set to true, the retry conditions are set to the default value.

Link copied to clipboard
@Serializable
data class AutomaticElement(val exitStatus: ExitStatusUnion? = null, val limit: Long? = null, val signal: String? = null, val signalReason: SignalReason? = null)
Link copied to clipboard
@Serializable
sealed interface Block
Link copied to clipboard
@Serializable
enum BlockedState : Enum<BlockedState>

The state that the build is set to when the build is blocked by this block step

Link copied to clipboard
@Serializable
data class BlockStep(val allowDependencyFailure: Boolean? = null, val block: String? = null, val blockedState: BlockedState? = null, val branches: SimpleStringValue? = null, val dependsOn: DependsOn? = null, val fields: List<FieldElement>? = null, val id: String? = null, val identifier: String? = null, val blockStepIf: String? = null, val key: String? = null, val label: String? = null, val name: String? = null, val prompt: String? = null, val type: BlockType? = null) : Keyable
Link copied to clipboard
@Serializable
enum BlockType : Enum<BlockType>
Link copied to clipboard
@Serializable
data class Build(val branch: String? = null, val commit: String? = null, val env: JsonObject? = null, val label: String? = null, val message: String? = null, val metaData: JsonObject? = null, val name: String? = null, val trigger: String? = null, val type: BuildType? = null)

Properties of the build that will be created when the step is triggered

Link copied to clipboard
@Serializable
enum BuildType : Enum<BuildType>
Link copied to clipboard
@Serializable
sealed interface Commands
Link copied to clipboard
@Serializable
data class CommandStep(val allowDependencyFailure: Boolean? = null, val block: String? = null, val blockedState: BlockedState? = null, val branches: SimpleStringValue? = null, val dependsOn: DependsOn? = null, val fields: List<FieldElement>? = null, val id: String? = null, val identifier: String? = null, val stepIf: String? = null, val key: String? = null, val label: String? = null, val name: String? = null, val prompt: String? = null, val type: StepType? = null, val agents: Agents? = null, val artifactPaths: SimpleStringValue? = null, val cancelOnBuildFailing: Boolean? = null, val command: Commands? = null, val commands: Commands? = null, val concurrency: Long? = null, val concurrencyGroup: String? = null, val concurrencyMethod: ConcurrencyMethod? = null, val env: Map<String, String>? = null, val matrix: MatrixUnion? = null, val notify: List<Notification>? = null, val parallelism: Long? = null, val plugins: Plugins? = null, val priority: Long? = null, val retry: Retry? = null, val signature: Signature? = null, val skip: Skip? = null, val softFail: SoftFail? = null, val timeoutInMinutes: Long? = null, val script: ScriptStep? = null, val async: Boolean? = null, val build: Build? = null, val trigger: Trigger? = null, val input: Input? = null, val continueOnFailure: Boolean? = null, val wait: Wait? = null, val waiter: Wait? = null) : Keyable

Waits for previous steps to pass before continuing

Link copied to clipboard

Control command order, allowed values are 'ordered' (default) and 'eager'. If you use this attribute, you must also define concurrency_group and concurrency.

Link copied to clipboard
object Conditions
Link copied to clipboard
@Serializable
sealed interface DependsOn

The step keys for a step to depend on

Link copied to clipboard
@Serializable
data class DependsOnClass(val allowFailure: Boolean? = null, val step: String? = null)
Link copied to clipboard
@Serializable
sealed interface DependsOnElement
Link copied to clipboard
@Serializable
enum ExitStatusEnum : Enum<ExitStatusEnum>
Link copied to clipboard
@Serializable
sealed interface ExitStatusUnion
Link copied to clipboard
@Serializable
data class ExternalNotification(val email: String? = null, val notifyIf: String? = null, val basecampCampfire: String? = null, val slack: SlackNotification? = null, val webhook: String? = null, val pagerdutyChangeEvent: String? = null, val githubCommitStatus: GithubCommitStatus? = null, val githubCheck: GithubCheck? = null)
Link copied to clipboard
@Serializable
data class FieldElement(val default: SimpleStringValue? = null, val hint: String? = null, val key: String, val required: Boolean? = null, val text: String? = null, val multiple: Boolean? = null, val options: List<Option>? = null, val select: String? = null)

A list of input fields required to be filled out before unblocking the step

Link copied to clipboard
@Serializable
data class GithubCheck(val context: String? = null)
Link copied to clipboard
@Serializable
data class GithubCommitStatus(val context: String? = null)
Link copied to clipboard
Link copied to clipboard
@Serializable
sealed interface GroupStep : Keyable
Link copied to clipboard
@Serializable
sealed interface Input
Link copied to clipboard
@Serializable
data class InputStep(val allowDependencyFailure: Boolean? = null, val branches: SimpleStringValue? = null, val dependsOn: DependsOn? = null, val fields: List<FieldElement>? = null, val id: String? = null, val identifier: String? = null, val inputStepIf: String? = null, val input: String? = null, val key: String? = null, val label: String? = null, val name: String? = null, val prompt: String? = null, val type: InputType? = null) : Keyable
Link copied to clipboard
@Serializable
enum InputType : Enum<InputType>
Link copied to clipboard
interface Keyable

A buildkite element that can be identified with a key.

Link copied to clipboard
@Serializable
data class ManualClass(val allowed: Boolean? = null, val permitOnPassed: Boolean? = null, val reason: String? = null)
Link copied to clipboard
@Serializable
sealed interface ManualUnion

Whether to allow a job to be retried manually

Link copied to clipboard
@Serializable
data class MatrixClass(val adjustments: List<Adjustment>? = null, val setup: Setup)

Configuration for multi-dimension Build Matrix

Link copied to clipboard
@Serializable
sealed interface MatrixElement

List of elements for simple single-dimension Build Matrix

Link copied to clipboard
@Serializable
sealed interface MatrixUnion
Link copied to clipboard
@Serializable
data class MultiChannelMessage(val channels: List<String>? = null, val message: String? = null)
Link copied to clipboard
@Serializable
data class NestedBlockStepClass(val allowDependencyFailure: Boolean? = null, val block: Block? = null, val blockedState: BlockedState? = null, val branches: SimpleStringValue? = null, val dependsOn: DependsOn? = null, val fields: List<FieldElement>? = null, val id: String? = null, val identifier: String? = null, val stepIf: String? = null, val key: String? = null, val label: String? = null, val name: String? = null, val prompt: String? = null, val type: NestedBlockStepType? = null, val input: Input? = null, val agents: Agents? = null, val artifactPaths: SimpleStringValue? = null, val cancelOnBuildFailing: Boolean? = null, val command: Commands? = null, val commands: Commands? = null, val concurrency: Long? = null, val concurrencyGroup: String? = null, val concurrencyMethod: ConcurrencyMethod? = null, val env: JsonObject? = null, val matrix: MatrixUnion? = null, val notify: List<Notification>? = null, val parallelism: Long? = null, val plugins: Plugins? = null, val priority: Long? = null, val retry: Retry? = null, val signature: Signature? = null, val skip: Skip? = null, val softFail: SoftFail? = null, val timeoutInMinutes: Long? = null, val script: ScriptStep? = null, val continueOnFailure: Boolean? = null, val wait: Wait? = null, val waiter: Wait? = null, val async: Boolean? = null, val build: Build? = null, val trigger: Trigger? = null, val group: String? = null, val steps: List<Step>? = null) : Keyable

Waits for previous steps to pass before continuing

Link copied to clipboard
Link copied to clipboard
@Serializable
sealed interface Notification

Array of notification options for this step

Link copied to clipboard
@Serializable
data class Option(val hint: String? = null, val label: String, val required: Boolean? = null, val value: String)
Link copied to clipboard
@Serializable
data class Pipeline(val steps: List<GroupStep>, val agents: Agents? = null, val env: JsonObject? = null, val notify: List<Notification>? = null)
Link copied to clipboard
@Serializable
sealed interface Plugin

Array of plugins for this step

Link copied to clipboard
@Serializable
sealed interface Plugins
Link copied to clipboard
@Serializable
data class Retry(val automatic: Automatic? = null, val manual: ManualUnion? = null)

The conditions for retrying this step.

Link copied to clipboard
@Serializable
data class ScriptStep(val agents: Agents? = null, val allowDependencyFailure: Boolean? = null, val artifactPaths: SimpleStringValue? = null, val branches: SimpleStringValue? = null, val cancelOnBuildFailing: Boolean? = null, val command: SimpleStringValue? = null, val commands: SimpleStringValue? = null, val concurrency: Long? = null, val concurrencyGroup: String? = null, val concurrencyMethod: ConcurrencyMethod? = null, val dependsOn: DependsOn? = null, val env: JsonObject? = null, val id: String? = null, val identifier: String? = null, val commandStepIf: String? = null, val key: String? = null, val label: String? = null, val matrix: MatrixUnion? = null, val name: String? = null, val notify: List<Notification>? = null, val parallelism: Long? = null, val plugins: Plugins? = null, val priority: Long? = null, val retry: Retry? = null, val signature: Signature? = null, val skip: Skip? = null, val softFail: SoftFail? = null, val timeoutInMinutes: Long? = null, val type: ScriptType? = null) : Keyable
Link copied to clipboard
@Serializable
enum ScriptType : Enum<ScriptType>
Link copied to clipboard
@Serializable
sealed interface Setup
Link copied to clipboard
@Serializable
enum SignalReason : Enum<SignalReason>

The exit signal reason, if any, that may be retried

Link copied to clipboard
@Serializable
data class Signature(val algorithm: String? = null, val signedFields: List<String>? = null, val value: String? = null)

The signature of the command step, generally injected by agents at pipeline upload

Link copied to clipboard
@Serializable
sealed interface SimpleStringValue
Link copied to clipboard
@Serializable
sealed interface Skip

Whether this step should be skipped. You can specify a reason for using a string.

Link copied to clipboard
@Serializable
sealed interface SlackNotification
Link copied to clipboard
@Serializable
sealed interface SoftFail

The conditions for marking the step as a soft-fail.

Link copied to clipboard
@Serializable
data class SoftFailElement(val exitStatus: ExitStatusUnion? = null)
Link copied to clipboard
@Serializable
sealed interface Step : Keyable
Link copied to clipboard
@Serializable
enum StepType : Enum<StepType>
Link copied to clipboard
@Serializable
enum StringStep : Enum<StringStep>

Pauses the execution of a build and waits on a user to unblock it

Link copied to clipboard
@Serializable
sealed interface Trigger : Keyable
Link copied to clipboard
@Serializable
data class TriggerStep(val allowDependencyFailure: Boolean? = null, val async: Boolean? = null, val branches: SimpleStringValue? = null, val build: Build? = null, val dependsOn: DependsOn? = null, val id: String? = null, val identifier: String? = null, val triggerStepIf: String? = null, val key: String? = null, val label: String? = null, val name: String? = null, val skip: Skip? = null, val softFail: SoftFail? = null, val trigger: String? = null, val type: BuildType? = null) : Keyable
Link copied to clipboard
@Serializable
sealed interface Wait : Keyable
Link copied to clipboard
@Serializable
data class WaitStep(val wait: String? = null, val allowDependencyFailure: Boolean? = null, val continueOnFailure: Boolean? = null, val dependsOn: DependsOn? = null, val id: String? = null, val identifier: String? = null, val waitStepIf: String? = null, val key: String? = null, val type: WaitType? = null, val waiter: String? = null) : Keyable

Waits for previous steps to pass before continuing

Link copied to clipboard
@Serializable
enum WaitType : Enum<WaitType>
Link copied to clipboard
@Serializable
sealed interface With

Functions

Link copied to clipboard
fun artifacts(vararg artifactPaths: String): SimpleStringValue
Link copied to clipboard
Link copied to clipboard
fun envMap(vararg env: Pair<String, String>): Map<String, String>
Link copied to clipboard
fun githubStatusNotif(context: String, notifyIf: String = Conditions.NOT_CANCELLING): Notification
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard