2020-01-27 23:10:34 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2019-10-30 22:24:28 +01:00
|
|
|
set -e
|
|
|
|
|
|
|
|
function post_work() {
|
|
|
|
set +e
|
|
|
|
if [[ -z "$REMOVE_KIBANA_INSTALL_DIR" && -z "$KIBANA_INSTALL_DIR" && -d "$KIBANA_INSTALL_DIR" ]]; then
|
|
|
|
rm -rf "$REMOVE_KIBANA_INSTALL_DIR"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
trap 'post_work' EXIT
|
|
|
|
|
|
|
|
export TEST_BROWSER_HEADLESS=1
|
|
|
|
|
2020-01-27 23:10:34 +01:00
|
|
|
source src/dev/ci_setup/setup_env.sh
|
2020-08-04 19:13:51 +02:00
|
|
|
|
|
|
|
# For parallel workspaces, we should copy the .es directory from the root, because it should already have downloaded snapshots in it
|
|
|
|
# This isn't part of jenkins_setup_parallel_workspace.sh just because not all tasks require ES
|
|
|
|
if [[ ! -d .es && -d "$WORKSPACE/kibana/.es" ]]; then
|
|
|
|
cp -R $WORKSPACE/kibana/.es ./
|
|
|
|
fi
|