@jameslnewell/buildkite-pipelines
    Preparing search index...

    Interface CommandStepSchema

    interface CommandStepSchema {
        agents?: AgentsObject | AgentsList;
        allow_dependency_failure?: boolean;
        artifact_paths?: string | string[];
        branches?: string | string[];
        cancel_on_build_failing?: boolean;
        command?: string | string[];
        commands?: string | string[];
        concurrency?: number;
        concurrency_group?: string;
        concurrency_method?: "ordered" | "eager";
        depends_on?:
            | string
            | (string | { allow_failure?: boolean; step?: string })[]
            | null;
        env?: Env;
        id?: string;
        identifier?: string;
        if?: string;
        key?: string;
        label?: string;
        matrix?:
            | (string | number | boolean)[]
            | {
                adjustments?: {
                    skip?: string | boolean;
                    soft_fail?:
                        | boolean
                        | { exit_status?: number
                        | "*"; [k: string]: unknown }[];
                    with: (string | number | boolean)[] | { [k: string]: string };
                    [k: string]: unknown;
                }[];
                setup: | { [k: string]: (string | number | boolean)[] }
                | (string | number | boolean)[];
                [k: string]: unknown;
            };
        name?: string;
        notify?: (
            | "github_check"
            | "github_commit_status"
            | { basecamp_campfire?: string; if?: string }
            | {
                if?: string;
                slack?:
                    | string
                    | { channels?: string[]; message?: string; [k: string]: unknown };
            }
            | {
                github_commit_status?: { context?: string; [k: string]: unknown };
                if?: string;
            }
            | {
                github_check?: { context?: string; [k: string]: unknown };
                if?: string;
            }
        )[];
        parallelism?: number;
        plugins?: { [k: string]: unknown }
        | (string | { [k: string]: unknown })[];
        priority?: number;
        retry?: {
            automatic?: boolean | AutomaticRetry | AutomaticRetry[];
            manual?:
                | boolean
                | { allowed?: boolean; permit_on_passed?: boolean; reason?: string };
            [k: string]: unknown;
        };
        skip?: string
        | boolean;
        soft_fail?:
            | boolean
            | { exit_status?: number
            | "*"; [k: string]: unknown }[];
        timeout_in_minutes?: number;
        type?: "script" | "command" | "commands";
    }
    Index

    Properties

    agents?: AgentsObject | AgentsList
    allow_dependency_failure?: boolean

    Whether to proceed with this step and further steps if a step named in the depends_on attribute fails

    artifact_paths?: string | string[]

    The glob path/s of artifacts to upload once this step has finished running

    branches?: string | string[]

    Which branches will include this step in their builds

    cancel_on_build_failing?: boolean

    Whether to cancel the job as soon as the build is marked as failing

    command?: string | string[]

    The commands to run on the agent

    commands?: string | string[]

    The commands to run on the agent

    concurrency?: number

    The maximum number of jobs created from this step that are allowed to run at the same time. If you use this attribute, you must also define concurrency_group.

    concurrency_group?: string

    A unique name for the concurrency group that you are creating with the concurrency attribute

    concurrency_method?: "ordered" | "eager"

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

    depends_on?:
        | string
        | (string | { allow_failure?: boolean; step?: string })[]
        | null

    The step keys for a step to depend on

    env?: Env
    id?: string

    A string identifier

    identifier?: string

    A string identifier

    if?: string

    A boolean expression that omits the step when false

    key?: string

    A unique identifier for a step, must not resemble a UUID

    label?: string

    The label that will be displayed in the pipeline visualisation in Buildkite. Supports emoji.

    matrix?:
        | (string | number | boolean)[]
        | {
            adjustments?: {
                skip?: string | boolean;
                soft_fail?:
                    | boolean
                    | { exit_status?: number
                    | "*"; [k: string]: unknown }[];
                with: (string | number | boolean)[] | { [k: string]: string };
                [k: string]: unknown;
            }[];
            setup: | { [k: string]: (string | number | boolean)[] }
            | (string | number | boolean)[];
            [k: string]: unknown;
        }

    Type Declaration

    • (string | number | boolean)[]
    • {
          adjustments?: {
              skip?: string | boolean;
              soft_fail?:
                  | boolean
                  | { exit_status?: number
                  | "*"; [k: string]: unknown }[];
              with: (string | number | boolean)[] | { [k: string]: string };
              [k: string]: unknown;
          }[];
          setup: | { [k: string]: (string | number | boolean)[] }
          | (string | number | boolean)[];
          [k: string]: unknown;
      }
      • [k: string]: unknown
      • Optionaladjustments?: {
            skip?: string | boolean;
            soft_fail?:
                | boolean
                | { exit_status?: number
                | "*"; [k: string]: unknown }[];
            with: (string | number | boolean)[] | { [k: string]: string };
            [k: string]: unknown;
        }[]

        List of Build Matrix adjustments

      • setup: { [k: string]: (string | number | boolean)[] } | (string | number | boolean)[]
    name?: string

    The label that will be displayed in the pipeline visualisation in Buildkite. Supports emoji.

    notify?: (
        | "github_check"
        | "github_commit_status"
        | { basecamp_campfire?: string; if?: string }
        | {
            if?: string;
            slack?:
                | string
                | { channels?: string[]; message?: string; [k: string]: unknown };
        }
        | {
            github_commit_status?: { context?: string; [k: string]: unknown };
            if?: string;
        }
        | {
            github_check?: { context?: string; [k: string]: unknown };
            if?: string;
        }
    )[]

    Array of notification options for this step

    Type Declaration

    • "github_check"
    • "github_commit_status"
    • { basecamp_campfire?: string; if?: string }
      • Optionalbasecamp_campfire?: string
      • Optionalif?: string

        A boolean expression that omits the step when false

    • {
          if?: string;
          slack?:
              | string
              | { channels?: string[]; message?: string; [k: string]: unknown };
      }
      • Optionalif?: string

        A boolean expression that omits the step when false

      • Optionalslack?: string | { channels?: string[]; message?: string; [k: string]: unknown }
    • {
          github_commit_status?: { context?: string; [k: string]: unknown };
          if?: string;
      }
      • Optionalgithub_commit_status?: { context?: string; [k: string]: unknown }
        • Optionalcontext?: string

          GitHub commit status name

      • Optionalif?: string

        A boolean expression that omits the step when false

    • { github_check?: { context?: string; [k: string]: unknown }; if?: string }
      • Optionalgithub_check?: { context?: string; [k: string]: unknown }
        • Optionalcontext?: string

          GitHub commit status name

      • Optionalif?: string

        A boolean expression that omits the step when false

    parallelism?: number

    The number of parallel jobs that will be created based on this step

    plugins?: { [k: string]: unknown } | (string | { [k: string]: unknown })[]
    priority?: number

    Priority of the job, higher priorities are assigned to agents

    retry?: {
        automatic?: boolean | AutomaticRetry | AutomaticRetry[];
        manual?:
            | boolean
            | { allowed?: boolean; permit_on_passed?: boolean; reason?: string };
        [k: string]: unknown;
    }

    The conditions for retrying this step.

    Type Declaration

    • [k: string]: unknown
    • Optionalautomatic?: boolean | AutomaticRetry | AutomaticRetry[]

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

    • Optionalmanual?: boolean | { allowed?: boolean; permit_on_passed?: boolean; reason?: string }

      Whether to allow a job to be retried manually

    skip?: string | boolean

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

    soft_fail?: boolean | { exit_status?: number | "*"; [k: string]: unknown }[]

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

    Type Declaration

    • boolean
    • { exit_status?: number | "*"; [k: string]: unknown }[]
      • [k: string]: unknown
      • Optionalexit_status?: number | "*"

        The exit status number that will cause this job to soft-fail

    timeout_in_minutes?: number

    The number of minutes to time out a job

    type?: "script" | "command" | "commands"