Wiki

Clone wiki

lita-gitlab2jenkins_ghp / Home

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

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

Updated