Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
Finish getting jenkins working
Browse files Browse the repository at this point in the history
Sam Kottler committed Jun 25, 2014
1 parent 83c387f commit b59cabf
Showing 4 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Berksfile.lock
Original file line number Diff line number Diff line change
@@ -202,7 +202,7 @@ GRAPH
rubygems-chef (0.0.8)
chef-client (>= 0.0.0)
omnibus_updater (>= 0.0.0)
rubygems-ci (0.0.1)
rubygems-ci (0.0.5)
jenkins (>= 0.0.0)
rubygems (>= 0.0.0)
rubygems-database (0.0.22)
2 changes: 1 addition & 1 deletion cookbooks/rubygems-ci/metadata.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name 'rubygems-ci'
maintainer 'RubyGems.org ops team'

version '0.0.1'
version '0.0.5'

depends 'jenkins'
depends 'rubygems'
19 changes: 10 additions & 9 deletions cookbooks/rubygems-ci/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
include_recipe 'rubygems'

plugins = data_bag_item('jenkins', 'plugins')

plugins.each do |plugin|
jenkins_plugin plugin do
action [ :install, :enable ]
end
end

# TODO: remove these three attributes once https://issues.jenkins-ci.org/browse/JENKINS-22346
# is fixed.
node.default['jenkins']['master']['install_method'] = 'war'
node.default['jenkins']['master']['version'] = '1.555'
node.default['jenkins']['master']['source'] = "#{node['jenkins']['master']['mirror']}/war/#{node['jenkins']['master']['version']}/jenkins.war"

include_recipe 'jenkins'
include_recipe 'jenkins::java'
include_recipe 'jenkins::master'

plugins = data_bag_item('jenkins', 'plugins')['plugins']

plugins.each do |plugin|
jenkins_plugin plugin do
action [ :install, :enable ]
end
end
6 changes: 6 additions & 0 deletions data_bags/jenkins/plugins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"id": "plugins",
"plugins": [
"greenballs"
]
}

0 comments on commit b59cabf

Please sign in to comment.