Giter VIP home page Giter VIP logo

bitrise-client's Introduction

Bitrise::Client

A ruby client for Bitrise API.

Now supports v0.1 Build Trigger API and Test Devices only.

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.

bitrise-client's People

Contributors

mataku avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.