Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ Usage: `bk artifacts [slug_or_url] [--glob <pattern>] [--download]`

Display artifacts of a specific build:

$ bk annotations https://buildkite.com/your-org/your-pipeline/builds/1234
$ bk artifacts https://buildkite.com/your-org/your-pipeline/builds/1234

Display artifacts of a specific build matching a glob (tip: quote the glob pattern to avoid your shell expanding):

$ bk annotations https://buildkite.com/your-org/your-pipeline/builds/1234 --glob "*.log"
$ bk artifacts https://buildkite.com/your-org/your-pipeline/builds/1234 --glob "*.log"

Download artifacts of a specific build matching a glob (tip: quote the glob pattern to avoid your shell expanding):

$ bk annotations https://buildkite.com/your-org/your-pipeline/builds/1234 --glob "*.log" --download
$ bk artifacts https://buildkite.com/your-org/your-pipeline/builds/1234 --glob "*.log" --download


### Logs
Expand Down
2 changes: 1 addition & 1 deletion lib/bk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Error < StandardError; end
HTTP = GraphQL::Client::HTTP.new("https://graphql.buildkite.com/v1") do
def headers(context)
unless (token = context[:access_token] || ENV["BUILDKITE_API_TOKEN"])
raise "missing BuildKite access token"
raise "missing Buildkite access token"
end

{
Expand Down