Find the last build number of a build that has run a job with a particular label. Useful for finding the last thing deployed to production etc
npm install -g last-from-buildkite
The CLI tool requires 3 arguments.
- --token: Your buildkite token, requires GraphQL permissions.
- --slug: Your project slug (including organisation prefix)
- --command: The label of the command you wish to search for
These can also be set as environment variables instead, by prefixing them with BUILDKITE (eg. BUILDKITE_TOKEN)