49 lines
1.4 KiB
Bash
Executable file
49 lines
1.4 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
cd "$KIBANA_DIR"
|
|
source src/dev/ci_setup/setup_env.sh
|
|
|
|
if [[ ! "$TASK_QUEUE_PROCESS_ID" ]]; then
|
|
./test/scripts/jenkins_xpack_build_plugins.sh
|
|
fi
|
|
|
|
# doesn't persist, also set in kibanaPipeline.groovy
|
|
export KBN_NP_PLUGINS_BUILT=true
|
|
|
|
echo " -> Ensuring all functional tests are in a ciGroup"
|
|
cd "$XPACK_DIR"
|
|
node scripts/functional_tests --assert-none-excluded \
|
|
--include-tag ciGroup1 \
|
|
--include-tag ciGroup2 \
|
|
--include-tag ciGroup3 \
|
|
--include-tag ciGroup4 \
|
|
--include-tag ciGroup5 \
|
|
--include-tag ciGroup6 \
|
|
--include-tag ciGroup7 \
|
|
--include-tag ciGroup8 \
|
|
--include-tag ciGroup9 \
|
|
--include-tag ciGroup10 \
|
|
--include-tag ciGroup11 \
|
|
--include-tag ciGroup12 \
|
|
--include-tag ciGroup13
|
|
|
|
# Do not build kibana for code coverage run
|
|
if [[ -z "$CODE_COVERAGE" ]] ; then
|
|
echo " -> building and extracting default Kibana distributable for use in functional tests"
|
|
cd "$KIBANA_DIR"
|
|
node scripts/build --debug --no-oss
|
|
|
|
echo " -> shipping metrics from build to ci-stats"
|
|
node scripts/ship_ci_stats \
|
|
--metrics target/optimizer_bundle_metrics.json \
|
|
--metrics packages/kbn-ui-shared-deps/target/metrics.json
|
|
|
|
linuxBuild="$(find "$KIBANA_DIR/target" -name 'kibana-*-linux-x86_64.tar.gz')"
|
|
installDir="$KIBANA_DIR/install/kibana"
|
|
mkdir -p "$installDir"
|
|
tar -xzf "$linuxBuild" -C "$installDir" --strip=1
|
|
|
|
mkdir -p "$WORKSPACE/kibana-build-xpack"
|
|
cp -pR install/kibana/. $WORKSPACE/kibana-build-xpack/
|
|
fi
|