项目作者: arsensokolov

项目描述 :
Capistrano plugin to notify deployments on Stride
高级语言: Ruby
项目地址: git://github.com/arsensokolov/capistrano-stride.git
创建时间: 2018-04-16T04:21:39Z
项目社区:https://github.com/arsensokolov/capistrano-stride

开源协议:MIT License

下载


Capistrano::Stride

Gem Version
Maintainability
Build Status

Notifies in a Stride room about a new deployment showing the git log for the latest
commits included in the current deploy.

Installation

Add this line to your application’s Gemfile:

  1. group :deployment do
  2. gem 'capistrano-stride', '~> 0.3', require: false
  3. end

The group declaration is optional, but it’s important to make sure you only load this gem
withing a Capistrano script (as explained below) and never within your application
(eg. rails does the require of the default bundler group and the current environment group).

And then execute:

  1. $ bundle

Or install it yourself as:

  1. $ gem install capistrano-stride

Usage

Add this to your Capfile

  1. require 'capistrano/stride'

Then you need to configure you Stride token and the room URL you want to notify about
the new deployment

  1. set :stride_url, "https://api.atlassian.com/site/SITE_ID/conversation/CONVERSATION_ID/message"
  2. set :stride_token, "STRIDE_ACCESS_TOKEN"

For get Stride URL and access token you need add custom app with API tokens,
without installation application. Just only enter specify a token name. Simple and Easy!

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request