Skip to content

Commit

Permalink
[artifacts] Only upload beats artifacts if they exist (elastic#132136)
Browse files Browse the repository at this point in the history
* [artifacts] Only upload beats artifacts if they exist

Beats artifacts are downloaded as a side effect  of building the cloud
image.  At times (e.g. a staging build, where we don't have the correct
sha) we may skip the cloud image build and these artifacts will not be
available to upload.

* Update .buildkite/scripts/steps/artifacts/build.sh

Co-authored-by: Spencer <email@spalger.com>

Co-authored-by: Spencer <email@spalger.com>
  • Loading branch information
2 people authored and Bamieh committed May 16, 2022
1 parent 283ae8d commit 10d9be0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .buildkite/scripts/steps/artifacts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ buildkite-agent artifact upload "dependencies-$FULL_VERSION.csv.sha512.txt"
buildkite-agent artifact upload 'i18n/*.json'
cd -

cd .beats
buildkite-agent artifact upload 'metricbeat-*'
buildkite-agent artifact upload 'filebeat-*'
cd -
if [ -d .beats ]; then
cd .beats
buildkite-agent artifact upload 'metricbeat-*'
buildkite-agent artifact upload 'filebeat-*'
cd -
fi

0 comments on commit 10d9be0

Please sign in to comment.