Using Build Metadata

In this guide we’ll walk through using the Buildkite Agent’s meta-data command to store and retrieve data between different steps in a build pipeline.

Setting data

To set meta-data you can simply:

buildkite-agent meta-data set "release-version" "1.1"

Getting data

To retrieve meta-data in a later step:

buildkite-agent meta-data get "release-version"

Further documentation

See the Buildkite Agent build meta-data documentation for a full list of options and details of Buildkite’s artifact support.