lib/buildkite/builder/pipeline.rb in buildkite-builder-2.0.0 vs lib/buildkite/builder/pipeline.rb in buildkite-builder-2.1.0
- old
+ new
@@ -38,22 +38,22 @@
use(Extensions::Steps)
load_manifests
end
def upload
- logger.info '+++ :paperclip: Uploading artifacts'
- upload_artifacts
-
# Upload the pipeline.
Tempfile.create(['pipeline', '.yml']) do |file|
file.sync = true
file.write(to_yaml)
logger.info '+++ :paperclip: Uploading pipeline.yml as artifact'
Buildkite::Pipelines::Command.artifact!(:upload, file.path)
logger.info '+++ :pipeline: Uploading pipeline'
Buildkite::Pipelines::Command.pipeline!(:upload, file.path)
end
+
+ logger.info '+++ :paperclip: Uploading artifacts'
+ upload_artifacts
end
def to_h
@pipeline_hash ||= begin
results = benchmark("\nDone (%s)".color(:springgreen)) do