Skip to content

buildkite/dependent-pipeline-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Buildkite Dependent Pipeline Example

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

👉 See this example in action:

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, or try it yourself:

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

    Add to Buildkite

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

    Add to Buildkite

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

License

See LICENSE (MIT)

Releases

No releases published

Packages

No packages published

Contributors 5