Buildkite Dependent Pipeline Example

This repository is an example Buildkite pipeline that shows how to trigger another pipeline using Trigger Steps.

Screenshot of the test pipeline build page

Test pipeline: runs tests and triggers deployment

Screenshot of the deployment pipeline build page

Deployment pipeline: triggered by the test pipeline

How it works

This example consists of two separate pipelines:

  • The Test pipeline runs tests and then uses a trigger step to trigger the deployment pipeline.
  • The Deployment pipeline runs independently and can also be triggered manually.

Each pipeline has its own pipeline.yml:

  • .buildkite/pipeline.yml — defines the test pipeline, including the trigger step
  • .buildkite/pipeline.deploy.yml — defines the deployment pipeline

Setup

See the full Getting Started Guide for step-by-step instructions on how to get this running.

  1. Create the test pipeline Uploads .buildkite/pipeline.yml and triggers the deploy pipeline when tests pass:

  2. Create the deployment pipeline Runs independently or when triggered by the test pipeline:

  3. Trigger a build on the test pipeline to see it in action!

License

See LICENSE (MIT)

More examples

Start turning complexity into an advantage

Create an account to get started with a 30-day free trial. No credit card required.

Buildkite Pipelines

Platform

  1. Pipelines
  2. Public pipelines
  3. Test Engine
  4. Package Registries
  5. Mobile Delivery Cloud
  6. Pricing

Hosting options

  1. Self-hosted agents
  2. Mac hosted agents
  3. Linux hosted agents

Resources

  1. Docs
  2. Blog
  3. Changelog
  4. Example pipelines
  5. Plugins
  6. Webinars
  7. Case studies
  8. Events
  9. Migration Services
  10. Comparisons

Company

  1. About
  2. Careers
  3. Press
  4. Security
  5. Brand assets
  6. Contact

Solutions

  1. Replace Jenkins
  2. Workflows for AI/ML
  3. Testing at scale
  4. Monorepo mojo
  5. Bazel orchestration

Legal

  1. Terms of Service
  2. Acceptable Use Policy
  3. Privacy Policy
  4. Subprocessors
  5. Service Level Agreement

Support

  1. System status
  2. Forum
© Buildkite Pty Ltd 2025