No commit activity in last 3 years
No release in over 3 years
A Lita Handler for storing gitlabs's pushed events for after send them in a merge request trigger
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 3.0.0.beta2
>= 3.5.0

Runtime

>= 3.0
 Project Readme

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 =)