2019-09-11 20:58:28 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
source src/dev/ci_setup/setup_env.sh
|
2019-09-15 17:12:47 +02:00
|
|
|
|
2020-08-14 22:41:47 +02:00
|
|
|
if [[ ! "$TASK_QUEUE_PROCESS_ID" ]]; then
|
|
|
|
./test/scripts/jenkins_build_plugins.sh
|
|
|
|
fi
|
2020-02-14 19:35:24 +01:00
|
|
|
|
|
|
|
# doesn't persist, also set in kibanaPipeline.groovy
|
|
|
|
export KBN_NP_PLUGINS_BUILT=true
|
|
|
|
|
2019-09-15 17:12:47 +02:00
|
|
|
echo " -> Ensuring all functional tests are in a ciGroup"
|
2020-12-22 16:44:47 +01:00
|
|
|
node scripts/ensure_all_tests_in_ci_group;
|
2019-09-15 17:12:47 +02:00
|
|
|
|
2021-05-29 02:21:51 +02:00
|
|
|
echo " -> building and extracting OSS Kibana distributable for use in functional tests"
|
|
|
|
node scripts/build --debug --oss
|
2020-08-14 22:41:47 +02:00
|
|
|
|
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
|
|
|
|
2021-05-29 02:21:51 +02:00
|
|
|
mkdir -p "$WORKSPACE/kibana-build-oss"
|
|
|
|
cp -pR build/oss/kibana-*-SNAPSHOT-linux-x86_64/. $WORKSPACE/kibana-build-oss/
|