Skip to content

jenkinsci/chef-handler-jenkins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Chef report handler for Jenkins deployment notification plugin

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages