No commit activity in last 3 years
No release in over 3 years
Lita jenkins handler that use the jenkins_api_client gem. I've implement some commands which is usable now.
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

Runtime

 Project Readme

lita-jenkins-client

Lita jenkins handler that use the jenkins_api_client gem

RubyGems.org project website: https://rubygems.org/gems/lita-jenkins-client

About

Integrate Lita and jenkins api. I've implement some commands which is usable now.

Installation

Add lita-jenkins-client to your Lita instance's Gemfile:

gem "lita-jenkins-client" # Fetch from rubygems.org
gem "lita-jenkins-client", github: 'joshua5201/lita-jenkins-client' # Fetch from github

Configuration

To configure lita to use your build server add the following lines to your lita_config.rb:

  config.handlers.jenkins_client.server_url = "https://<your-jenkins-hostname>"
  config.handlers.jenkins_client.username   = "<jenkins-username>"
  config.handlers.jenkins_client.password   = "<jenkins-password>"

A full list of all config keys can be found here

Current Available Commands

see @lita help jenkins for more info

@lita jenkins version 
@lita jenkins running?
@lita jenkins cli [cmd]
@lita jenkins version

@lita jenkins job build [job name] [param_key:param_value]
@lita jenkins job params [job name]
@lita jenkins job status [job name]
@lita jenkins job all
@lita jenkins job list [filter]
@lita jenkins job list_by_status [success/failure]

Test

  1. cp spec/config.yml.example spec/config.yml and edit your configurations.
  2. Make sure you don't have project named after test_with_param and test_without_param
  3. rspec

Contribute

  1. feature: I only implement some of api from jenkins_api_client gem, you can follow the structure and implement more commands.
  2. bug: please report issues or just help me fix them.
  3. please provide RSpec tests