2021-06-01 19:11:07 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
if [[ ! "${DISABLE_CI_STATS_SHIPPING:-}" ]]; then
|
|
|
|
echo "--- Ship Kibana Distribution Metrics to CI Stats"
|
|
|
|
node scripts/ship_ci_stats \
|
|
|
|
--metrics target/optimizer_bundle_metrics.json \
|
2021-09-16 21:06:46 +02:00
|
|
|
--metrics build/kibana/node_modules/@kbn/ui-shared-deps-src/shared_built_assets/metrics.json
|
2021-06-01 19:11:07 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo "--- Upload Build Artifacts"
|
|
|
|
# Moving to `target/` first will keep `buildkite-agent` from including directories in the artifact name
|
|
|
|
cd "$KIBANA_DIR/target"
|
2021-10-15 18:58:20 +02:00
|
|
|
cp kibana-*-linux-x86_64.tar.gz kibana-default.tar.gz
|
|
|
|
buildkite-agent artifact upload "./*.tar.gz;./*.zip"
|
2021-06-01 19:11:07 +02:00
|
|
|
cd -
|