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
-
cp spec/config.yml.example spec/config.yml
and edit your configurations. - Make sure you don't have project named after
test_with_param
andtest_without_param
rspec
Contribute
- feature: I only implement some of api from jenkins_api_client gem, you can follow the structure and implement more commands.
- bug: please report issues or just help me fix them.
- please provide RSpec tests