1. Resources
  2. /
  3. Blog
  4. /
  5. Block step input fields

Block step input fields

1 minute read

Getting data into pipelines can be hard. Instead of wrangling APIs and chatops, you can now add custom forms directly to your Buildkite pipelines πŸ™ŒπŸ» Getting input from your team has never been easier.

Screenshot of the Buildkite Secret Santa block step input fields

Sounds great, but what can I actually use this for?

  • πŸ–₯ Choosing an environment before running a deployment script
  • πŸ’­ Dynamic questions based on pull request content
  • πŸ“‘ Automation of team onboarding, offboarding, and other workflows
  • πŸ’₯ Checking that you really do want to go through with that Friday afternoon deployment
  • πŸš€ Adding a name, version, and changelog to a release

We even used it to automate our team’s Secret Santa πŸ˜„πŸŽ„πŸŽ…πŸΌ

Adding an input field to your pipeline

  1. Add a block step to your pipeline.yml file.
  2. Provide it with a prompt attribute, and at least one field attribute. For example:
1
2
3
4
5
- block: "Question!"
  prompt: "Please answer this important question"
  fields: 
   - text: "What day is it today?"
     key: "day-of-the-week"
  1. Create and run a new build on your updated pipeline!

The data that the user enters into the form is then available on subsequent steps from the build meta-data! 😱

Screenshot of the block step input field example

To explore a pipeline with a block step and input fields, take a look at our example repository: https://github.com/buildkite/block-step-example

Check out all of the available input field options over in our documentation. We’d love to hear what you think! Say hi on twitter, or send us an email.


Related posts

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. Pipeline templates
  3. Public pipelines
  4. Test Engine
  5. Package Registries
  6. Mobile Delivery Cloud
  7. Pricing

Hosting options

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

Resources

  1. Docs
  2. Blog
  3. Changelog
  4. Webinars
  5. Plugins
  6. Case studies
  7. Events

Company

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

Solutions

  1. Replace Jenkins
  2. Workflows for AI/ML
  3. Testing at scale
  4. Monorepo delivery

Support

  1. System status
  2. Forum