Skip to content

arsensokolov/capistrano-stride

Repository files navigation

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:

group :deployment do
    gem 'capistrano-stride', '~> 0.3', require: false
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:

$ bundle

Or install it yourself as:

$ gem install capistrano-stride

Usage

Add this to your Capfile

require 'capistrano/stride'

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

set :stride_url, "https://api.atlassian.com/site/SITE_ID/conversation/CONVERSATION_ID/message"
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

About

Capistrano plugin to notify deployments on Stride

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages