class Buildkite::Builder::Commands::Run
Private Instance Methods
pipeline_path()
click to toggle source
Calls superclass method
Buildkite::Builder::Commands::Abstract#pipeline_path
# File lib/buildkite/builder/commands/run.rb, line 24 def pipeline_path pipeline_path_override || super end
pipeline_path_override()
click to toggle source
# File lib/buildkite/builder/commands/run.rb, line 28 def pipeline_path_override if ENV['BUILDKITE_BUILDER_PIPELINE_PATH'] path = Pathname.new(ENV['BUILDKITE_BUILDER_PIPELINE_PATH']) path.absolute? ? path : Builder.root.join(path) end end
run()
click to toggle source
# File lib/buildkite/builder/commands/run.rb, line 13 def run relative_pipeline_path = pipeline_path.relative_path_from(Builder.root) # This entrypoint is for running on CI. It expects certain environment # variables to be set. It also uploads the pipeline to Buildkite. log.info "#{'+++ ' if Buildkite.env}🧰 " + 'Buildkite Builder'.color(:springgreen) + " ─ #{relative_pipeline_path.to_s.yellow}" Pipeline.new(pipeline_path, logger: log).upload end