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