lib/buildkite/builder.rb in buildkite-builder-4.2.1 vs lib/buildkite/builder.rb in buildkite-builder-4.2.2

- old
+ new

@@ -21,14 +21,17 @@ autoload :PipelineCollection, File.expand_path('builder/pipeline_collection', __dir__) autoload :TemplateManager, File.expand_path('builder/template_manager', __dir__) autoload :PluginManager, File.expand_path('builder/plugin_manager', __dir__) BUILDKITE_DIRECTORY_NAME = Pathname.new('.buildkite').freeze - META_DATA = { - job: 'buildkite-builder:job' - }.freeze class << self + def meta_data + @meta_data ||= { + job: "buildkite-builder:#{Buildkite.env.step_id}" + } + end + def root(start_path: Dir.pwd, reset: false) @root = nil if reset @root ||= find_buildkite_directory(start_path) end