An open API service indexing awesome lists of open source software.

https://github.com/buildkite/input-step-example

An example pipeline that uses an input step to pause a build and request manual input from a user.
https://github.com/buildkite/input-step-example

buildkite example input-step pipeline

Last synced: 5 months ago
JSON representation

An example pipeline that uses an input step to pause a build and request manual input from a user.

Awesome Lists containing this project

README

          

# Buildkite Input Step Example

[![Build status](https://badge.buildkite.com/a947f64837044296a1ea4394819872e0544a4647a3400e6634.svg?branch=main)](https://buildkite.com/buildkite/input-step-example/builds/latest?branch=main)
[![Add to Buildkite](https://img.shields.io/badge/Add%20to%20Buildkite-14CC80)](https://buildkite.com/new)

This repository is an example [Buildkite](https://buildkite.com/) pipeline that demonstrates how to use an [Input Step](https://buildkite.com/docs/pipelines/configure/step-types/input-step) to pause a build and request manual input.

👉 **See this example in action:** [https://buildkite.com/docs/pipelines/input-step-example](https://buildkite.com/buildkite/input-step-example/builds/latest?branch=main)

See the full [Getting Started Guide](https://buildkite.com/docs/guides/getting-started) for step-by-step instructions on how to get this running, or try it yourself:

[![Add to Buildkite](https://buildkite.com/button.svg)](https://buildkite.com/new)


Input step screenshot


The pipeline paused at an input step


Popup dialog for input


The input dialog prompting for a value


Build after input submission


The pipeline resuming after the input is submitted


Script output using input


The input value echoed back by the script

## How it works

This example:
- Uses an [Input Step](https://buildkite.com/docs/pipelines/input-step) to ask for a value mid-pipeline.
- Passes that value to a script (choose from [`script.sh`](script.sh) or [`script.ps1`](script.ps1)) that echoes it back.
- Can be extended to support manual approvals, environment switching, or conditional builds.

To switch platforms, edit the step in `.buildkite/pipeline.yml`.

## License

See [LICENSE.md](LICENSE.md) (MIT)