lib/buildkite/builder/commands/run.rb in buildkite-builder-4.5.0 vs lib/buildkite/builder/commands/run.rb in buildkite-builder-4.6.0

- old
+ new

@@ -15,10 +15,10 @@ # This entrypoint is for running on CI. It expects certain environment # variables to be set. It also uploads the pipeline to Buildkite. log.info "+++ 🧰 #{'Buildkite Builder'.color(:springgreen)} v#{Buildkite::Builder.version} ─ #{relative_pipeline_path.to_s.yellow}" - if Buildkite::Pipelines::Command.meta_data(:exists, Builder.meta_data.fetch(:job)) + if Buildkite::Pipelines::Command.meta_data(:exists, Builder.meta_data.fetch(:job)).success? log.info "Pipeline already uploaded in #{Buildkite.env.step_id} step".color(:dimgray) else Pipeline.new(pipeline_path, logger: log).upload end end