Skip to content
Chef report handler for Jenkins deployment notification plugin
Ruby
Branch: master
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/chef/handler
.gitignore
Gemfile
LICENSE Initial version Mar 31, 2014
README.md
chef-handler-jenkins.gemspec

README.md

This is a Chef report handler that allows Jenkins to track when files are deployed where.

Usage

There are two ways to configure Chef Handler.

Via solo.rb or client.rb

Install chef-handler-jenkins gem upfront first:

$ gem install chef-handler-jenkins

Then configure Chef to use it with the following lines. For chef-solo, you can put that in your /etc/chef/solo.rb (or your local override). For chef-client, you can put that in your /etc/chef/client.rb.

require 'chef/handler/jenkins'
report_handlers << Chef::Handler::Jenkins.new(:url => 'http://myserver.acme.com/jenkins')

This approach is best suited if you own the operation environment and want to do the deployment integration without modifying recipes.

Via recipes

Use chef_handler cookbook and activate this handler via your recipe:

chef_gem 'chef-handler-jenkins'
require 'chef/handler/jenkins'

chef_handler 'Chef::Handler::Jenkins' do
  source 'chef/handler/jenkins'
  arguments :url => 'http://myserver.acme.com/jenkins'
  action :enable
end
You can’t perform that action at this time.