2019-06-14 20:16:48 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-03-06 16:40:17 +01:00
|
|
|
source src/dev/ci_setup/setup_env.sh
|
2019-06-16 16:23:36 +02:00
|
|
|
source "$KIBANA_DIR/src/dev/ci_setup/setup_percy.sh"
|
|
|
|
|
2020-03-06 16:40:17 +01:00
|
|
|
echo " -> building and extracting default Kibana distributable"
|
|
|
|
cd "$KIBANA_DIR"
|
|
|
|
node scripts/build --debug --no-oss
|
2021-02-09 00:40:11 +01:00
|
|
|
|
|
|
|
echo " -> shipping metrics from build to ci-stats"
|
2021-02-16 22:01:26 +01:00
|
|
|
node scripts/ship_ci_stats \
|
|
|
|
--metrics target/optimizer_bundle_metrics.json \
|
|
|
|
--metrics packages/kbn-ui-shared-deps/target/metrics.json
|
2021-02-09 00:40:11 +01:00
|
|
|
|
2020-03-06 16:40:17 +01:00
|
|
|
linuxBuild="$(find "$KIBANA_DIR/target" -name 'kibana-*-linux-x86_64.tar.gz')"
|
2020-08-14 22:41:47 +02:00
|
|
|
installDir="$KIBANA_DIR/install/kibana"
|
2020-03-06 16:40:17 +01:00
|
|
|
mkdir -p "$installDir"
|
|
|
|
tar -xzf "$linuxBuild" -C "$installDir" --strip=1
|
|
|
|
|
2021-05-29 02:21:51 +02:00
|
|
|
mkdir -p "$WORKSPACE/kibana-build-xpack"
|
|
|
|
cp -pR install/kibana/. $WORKSPACE/kibana-build-xpack/
|
2020-08-14 22:41:47 +02:00
|
|
|
|
2020-07-15 00:32:20 +02:00
|
|
|
cd "$KIBANA_DIR"
|
|
|
|
source "test/scripts/jenkins_xpack_saved_objects_field_metrics.sh"
|