Pipette.DSL (Pipette v0.5.1)

Copy Markdown View Source

Declarative Buildkite pipeline definition DSL.

use Pipette.DSL in a module to define a pipeline with top-level entities — branches, scopes, groups, steps, and triggers:

defmodule MyApp.Pipeline do
  use Pipette.DSL

  branch "main", scopes: :all, disable: [:targeting]

  scope :api_code, files: ["apps/api/**"]

  group :api do
    label ":elixir: API"
    scope :api_code
    step :test, label: "Test", command: "mix test"
  end
end

Options

  • :extensions (list of module that adopts Spark.Dsl.Extension) - A list of DSL extensions to add to the Spark.Dsl

  • :otp_app (atom/0) - The otp_app to use for any application configurable options

  • :fragments (list of module/0) - Fragments to include in the Spark.Dsl. See the fragments guide for more.