View Code? Open in Web Editor
NEW
This cookbook installs a complete Jenkins server with plugins and is highly configurable with attributes in this cookbook. It configures settings, plugins, security and slaves. It also installs (can be disabled) the Jenkins plugins, php-template job and required PHP tools as described on http://jenkins-php.org.
Home Page: https://supermarket.chef.io/cookbooks/jenkins-server
License: MIT License
chef-cookbook-jenkins-server's People
Contributors
Watchers
chef-cookbook-jenkins-server's Issues
As per attributes/jenkins.rb, this cookbook attempts to use a jenkins package version of '1.642-1.1' through the following attribute:
default['jenkins']['master']['version']
The underlying cookbook, jenkins, specifies a URL of http://pkg.jenkins-ci.org/debian/ for the debian family in it's own attributes/master.rb, however visiting the above URL shows that there is not a package that matches the version specified as the default value of the attribute - '1.642-1.1'. This cookbook fails to converge for me on Ubuntu 14.04 unless the above attribute is manually overridden to a value that matches a package version at the above URL.
I'm seeing a error. Looks to be type mismatch.
My setup is very simple, a recipe with only:
include_recipe 'jenkins-server::default'
and no node attributes as yet set.
==> default : Recipe Compile Error in /tmp/vagrant -chef /6e041 c8bd39ee7074737ecc884d8b309 /cookbooks /stashykins /recipes /default . rb
==> default :
==> default : ================================================================================
==> default :
==> default :
==> default :
==> default :
==> default : Chef ::Exceptions ::ValidationFailed
==> default :
==> default : ----------------------------------
==> default :
==> default : Option cookbook must be a kind of [ String ] ! You passed :"jenkins-server" .
==> default :
==> default :
==> default :
==> default : Cookbook Trace :
==> default : ---------------
==> default : /tmp/vagrant -chef /6e041 c8bd39ee7074737ecc884d8b309 /cookbooks /jenkins -server /recipes /plugins . rb :34 :in `block (2 levels) in from_file'
==> default: /tmp/vagrant-chef/6e041c8bd39ee7074737ecc884d8b309/cookbooks/jenkins-server/recipes/plugins.rb:33:in ` block in from_file '
==> default: /tmp/vagrant-chef/6e041c8bd39ee7074737ecc884d8b309/cookbooks/jenkins-server/recipes/plugins.rb:7:in `each'
==> default : /tmp/vagrant -chef /6e041 c8bd39ee7074737ecc884d8b309 /cookbooks /jenkins -server /recipes /plugins . rb :7 :in `from_file'
==> default: /tmp/vagrant-chef/6e041c8bd39ee7074737ecc884d8b309/cookbooks/jenkins-server/recipes/default.rb:19:in ` from_file '
==> default: /tmp/vagrant-chef/6e041c8bd39ee7074737ecc884d8b309/cookbooks/stashykins/recipes/default.rb:10:in `from_file'
==> default :
==> default : Relevant File Content :
==> default : ----------------------
==> default : /tmp/vagrant -chef /6e041 c8bd39ee7074737ecc884d8b309 /cookbooks /jenkins -server /recipes /plugins . rb :
==> default :
==> default : 27 : template_path = options [ 'template_path' ]
==> default : 28 : else
==> default : 29 : template_path = "#{ plugin } .xml"
==> default : 30 : end
==> default : 31 :
==> default : 32 : if has_template? ( template_source , template_cookbook )
==> default : 33 : template "#{ node [ 'jenkins' ] [ 'master' ] [ 'home' ] } /#{ template_path } " do
==> default : 34 >> cookbook template_cookbook
==> default : 35 : source template_source
==> default : 36 : mode '0644'
==> default : 37 : owner node [ 'jenkins' ] [ 'master' ] [ 'user' ]
==> default : 38 : group node [ 'jenkins' ] [ 'master' ] [ 'group' ]
==> default : 39 : action :create
==> default : 40 : end
==> default : 41 : else
==> default : 42 : Chef ::Log . debug "No template found for source \" #{ template_source } \" in cookbook \" #{ template_cookbook } \" "
==> default : 43 : end
==> default :
==> default :
==> default : Running handlers :
==> default : [ 2015 -12 -11 T01 :08 :33 +00 :00 ] ERROR : Running exception handlers
==> default : Running handlers complete
==> default : [ 2015 -12 -11 T01 :08 :33 +00 :00 ] ERROR : Exception handlers complete
==> default : Chef Client failed . 1 resources updated in 05 seconds
==> default : [ 2015 -12 -11 T01 :08 :33 +00 :00 ] FATAL : Stacktrace dumped to /var /chef /cache /chef -stacktrace . out
==> default : [ 2015 -12 -11 T01 :08 :33 +00 :00 ] ERROR : Option cookbook must be a kind of [ String ] ! You passed :"jenkins-server" .
==> default : [ 2015 -12 -11 T01 :08 :33 +00 :00 ] FATAL : Chef ::Exceptions ::ChildConvergeError : Chef run process exited unsuccessfully ( exit code 1 )
Chef never successfully completed! Any errors should be visible in the
output above . Please fix your recipes so that they properly complete .