Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

58 lines (51 sloc) 1.123 kB
dep 'hudson' do
requires [
'installed.hudson',
'cli.hudson',
'git.hpi', 'github.hpi', 'ruby.hpi', 'rake.hpi'
]
end
meta :hudson do
def path
'~/hudson'.p
end
end
dep 'installed.hudson' do
requires 'tomcat.managed'
met? { (path / 'hudson.war').exists? }
meet {
cd path, :create => true do
shell 'wget http://hudson-ci.org/latest/hudson.war'
end
}
end
dep 'cli.hudson' do
met? { (path / 'hudson-cli.jar').exists? }
meet {
cd path, :create => true do
shell 'jar -xf hudson.war WEB-INF/hudson-cli.jar'
shell 'mv WEB-INF/hudson-cli.jar .'
shell 'rmdir WEB-INF'
end
}
end
meta :hpi do
accepts_value_for :source, :name
template {
met? {
"~/.hudson/plugins/#{source}".p.exists?
}
meet {
Babushka::Resource.get "http://hudson-ci.org/latest/#{source}" do |hpi|
shell "java -jar ~/hudson/hudson-cli.jar -s http://localhost:8080/ install-plugin #{hpi}"
end
}
}
end
dep 'tomcat.managed' do
provides %w[catalina.sh startup.sh shutdown.sh]
end
dep 'git.hpi'
dep 'github.hpi'
dep 'ruby.hpi'
dep 'rake.hpi'
Jump to Line
Something went wrong with that request. Please try again.