mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Fix job generation
This commit is contained in:
parent
0581bb278e
commit
3c36390b1e
1 changed files with 2 additions and 2 deletions
|
@ -11,10 +11,10 @@ plugindir = File.join(File.dirname(__FILE__), "..", "..", "lib", "logstash")
|
|||
|
||||
plugins = %w(inputs filters outputs).collect { |t| Dir.glob(File.join(plugindir, t, "*.rb")) }.flatten
|
||||
|
||||
template = ERB.new("config.xml.erb")
|
||||
template = ERB.new(File.read(File.join(File.dirname(__FILE__), "config.xml.erb")))
|
||||
plugins.each do |path|
|
||||
job = path.gsub(/.*\/([^\/]+)\/([^\/]+)\.rb$/, '\1-\2')
|
||||
plugin_path = path.gsub(/.*\/([^\/]+)\/([^\/]+)\.rb$/, '\1/\2')
|
||||
plugin_path = path.gsub(/.*\/([^\/]+)\/([^\/]+)$/, '\1/\2')
|
||||
|
||||
jobdir = File.join(ENV["JENKINS_HOME"], job)
|
||||
puts "Writing #{jobdir}/config.xml"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue