0.01
Low commit activity in last 3 years
No release in over a year
A ruby client for Bitrise API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

 Project Readme

Bitrise::Client

A ruby client for Bitrise API.

Now supports following APIs.

Installation

Add this line to your application's Gemfile:

gem 'bitrise-client'

And then execute:

$ bundle

Or install it yourself as:

$ gem install bitrise-client

Usage

require 'bitrise'

# Access token required to use bitrise v0.1 API. See: https://devcenter.bitrise.io/en/api/authenticating-with-the-bitrise-api.html
client = Bitrise::Client.new(access_token: 'your access token')

# Trigger a build
result = client.trigger_build(
  app_slug: 'your_app_slug', # Required
  build_params: {
    # At least a tag, branch or workflow_id parameter required so that Bitrise can identify which workflow to run
    branch: 'branch',
    tag:    'tag',
    workflow_id: 'workflow_id'
  }
)

p result.build_url # => "https://app.bitrise.io/build/1234abcd5678efgh"

# Abort a build
client.abort_build(
  # Required
  app_slug: 'your_app_slug',
  # Required
  build_slug: 'build slug to abort',

  # Optional
  options: {
    abort_reason: 'wanna relax', # You can set a reason
    abort_with_success: true,    # Set true if you want to treat as a successful
    skip_notifications: true     # Set true if you want to receive notification even if your notification setting in app is off
  }
)

# List registered test devices of all members of a specified Bitrise app
devices = client.test_devices(
  # Required
  app_slug: 'your_app_slug'
)
devices.each do |device|
  p device.device_id
  p device.device_type
  p device.owner
end

Changelog

See CHANGELOG.md

License

The gem is available as open source under the terms of the MIT License.