19 lines
666 B
Bash
Executable file
19 lines
666 B
Bash
Executable file
#!/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 \
|
|
--metrics build/kibana/node_modules/@kbn/ui-shared-deps/shared_built_assets/metrics.json
|
|
fi
|
|
|
|
echo "--- Upload Build Artifacts"
|
|
# Moving to `target/` first will keep `buildkite-agent` from including directories in the artifact name
|
|
cd "$KIBANA_DIR/target"
|
|
mv kibana-*-linux-x86_64.tar.gz kibana-default.tar.gz
|
|
buildkite-agent artifact upload kibana-default.tar.gz
|
|
buildkite-agent artifact upload kibana-default-plugins.tar.gz
|
|
cd -
|