lita-gitlab2jenkins_ghp
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
locales
spec
.gitignore
.ruby-version
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
lita-gitlab2jenkins_ghp.gemspec

README.md

lita-gitlab2jenkins_ghp

Build Status Code Climate Coverage Status

lita-fitlab2jenkins_ghp is a Lita that uses GitLab webhooks and ci-status to be build with Jenkins.

Installation

Add lita-gitlab2jenkins_ghp to your Lita instance's Gemfile:

gem "lita-gitlab2jenkins_ghp"

Configuration

REQUERIMENTS:

You will need to install on Jenkins the next plugins =>

Gitlab Hook Plugin 1.0.0, Embeddable Build Status 1.4, Notification Plugin 1.5

Example usage YML

Lita.configure do |config|
  config.handlers.gitlab2jenkins_ghp.room                 = '#error_channel'
  config.handlers.gitlab2jenkins_ghp.url_gitlab           = 'http://gitlab.example.com'
  config.handlers.gitlab2jenkins_ghp.url_jenkins          = 'http://jenkins.example.com'
  config.handlers.gitlab2jenkins_ghp.url_jenkins_hook     = '/gitlab/build_now'
  config.handlers.gitlab2jenkins_ghp.url_jenkins_img      = '/buildStatus/icon?job='
  config.handlers.gitlab2jenkins_ghp.url_jenkins_icon     = '/static/843013a3/images/jenkins.png'
  config.handlers.gitlab2jenkins_ghp.private_token_gitlab = 'some_gitlab_token_from_admin_user'
  config.redis.host                                       = 'redis.example.com'
end

For more understanding please read wiki

License

MIT

TODO:

  • Make tests for GET scenarios when GitLab queries ci status
  • Refactoring gem to nit loggic flow
  • Add scenario for "Tag push events" on next version

WTF

Since GitLab is charging for this functionality in it's enterprise http://doc.gitlab.com/ee/integration/jenkins.html, I moved it to a private bucket for no more unethical practice.

For Social Working goto

https://bitbucket.org/jcalonsoh/lita-gitlab2jenkins_ghp/wiki/Home, and request participation =)