https://github.com/emanprague/mina-redmine
Deploy notifications to redmine.
https://github.com/emanprague/mina-redmine
mina redmine ruby
Last synced: 6 months ago
JSON representation
Deploy notifications to redmine.
- Host: GitHub
- URL: https://github.com/emanprague/mina-redmine
- Owner: eManPrague
- License: mit
- Created: 2018-06-18T04:10:47.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-28T14:37:01.000Z (about 7 years ago)
- Last Synced: 2024-12-29T15:26:43.590Z (over 1 year ago)
- Topics: mina, redmine, ruby
- Language: Ruby
- Size: 10.7 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mina::Redmine
Announce Mina deployments to redmine - add info to your tickets where
have been deployed and move them in proper state.
## Installation
Add this line to your application's Gemfile:
gem 'mina-redmine', github: "eManPrague/mina-redmine"
And then execute:
$ bundle
## Usage
### Load the recipe
Include the recipe in your deploy.rb
# config/deploy.rb
require 'mina/redmine'
### Setup Mina redmine
You'll need to setup your redmine details with an API key, room and subdomain. You can add these as ENV variables or in the config/deploy.rb
# required
set :redmine_url, 'https://redmine.org/' # Redmine url
set :redmine_project, 'my_cool_project' # Project name
set :redmine_token, 'ABCD1234' # Your deploy token
# optional
set :redmine_server, 'http://...app.destination'
Or use the ENV variables:
# required
ENV['redmine_url'] = ''
ENV['redmine_project'] = ''
ENV['redmine_token'] = ''
# optional
ENV['redmine_server'] || ENV['CI_ENVIRONMENT_URL'] # From gitlab tasks
Update `deploy` task to invoke `redmine:post_info` task:
```ruby
task :deploy do
invoke :'redmine:post_info'
end
```
## Contributing
1. Fork it ( http://github.com//mina-redmine/fork )
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