Sha256: ca623e3af3b536263554eeb3ec6479978b5b32931f46ba51b81893670ac893ca
Contents?: true
Size: 816 Bytes
Versions: 2
Compression:
Stored size: 816 Bytes
Contents
#!/usr/bin/env ruby require "bundler/setup" require "unofficial_buildkite_client" # You can add fixtures and/or initialization code here to make experimenting # with your gem easier. You can also use a different console, if you like. client = UnofficialBuildkiteClient.new(org_slug: "rails", pipeline_slug: "rails") builds = client.fetch_builds(created_at_from: "2019-04-19T07:00", first: 1, state: ["FAILED", "PASSED"]) build = client.fetch_build(number: builds.first[:number]) job = build[:jobs].first log = client.fetch_log(build_number: job[:build_number], job_id: job[:id]) artifacts = client.fetch_artifacts(build_number: job[:build_number], job_id: job[:id]) artifact = client.fetch_artifact(build_number: job[:build_number], job_id: job[:id], artifact_id: artifacts.first[:id]) Bundler.require Pry.start
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
unofficial_buildkite_client-0.5.0 | bin/console |
unofficial_buildkite_client-0.4.0 | bin/console |