63 lines
1.9 KiB
Bash
Executable file
63 lines
1.9 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_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"
|
|
node scripts/ensure_all_tests_in_ci_group;
|
|
|
|
echo " -> Ensuring all x-pack functional tests are in a ciGroup"
|
|
node x-pack/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 \
|
|
--include-tag ciGroupDocker
|
|
|
|
# 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"
|
|
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
|
|
cp "$linuxBuild" "$WORKSPACE/kibana-default.tar.gz"
|
|
|
|
mkdir -p "$WORKSPACE/kibana-build"
|
|
cp -pR install/kibana/. $WORKSPACE/kibana-build/
|
|
|
|
echo " -> Archive built plugins"
|
|
shopt -s globstar
|
|
tar -zcf \
|
|
"$WORKSPACE/kibana-default-plugins.tar.gz" \
|
|
x-pack/plugins/**/target/public \
|
|
x-pack/test/**/target/public \
|
|
examples/**/target/public \
|
|
x-pack/examples/**/target/public \
|
|
test/**/target/public
|
|
shopt -u globstar
|
|
fi
|