Lita jenkins handler that use the jenkins_api_client gem (https://github.com/arangamani/jenkins_api_client)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
locales
spec
templates
.gitignore
Gemfile
README.md
Rakefile
lita-jenkins-client.gemspec

README.md

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