2020-01-28 22:55:29 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
source test/scripts/jenkins_test_setup.sh
|
|
|
|
|
|
|
|
if [[ -z "$CODE_COVERAGE" ]]; then
|
2021-05-29 02:21:51 +02:00
|
|
|
destDir="$WORKSPACE/kibana-build-xpack-${TASK_QUEUE_PROCESS_ID:-$CI_PARALLEL_PROCESS_NUMBER}"
|
2020-08-14 22:41:47 +02:00
|
|
|
|
|
|
|
if [[ ! -d $destDir ]]; then
|
|
|
|
mkdir -p $destDir
|
2021-05-29 02:21:51 +02:00
|
|
|
cp -pR "$WORKSPACE/kibana-build-xpack/." $destDir/
|
2020-08-14 22:41:47 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
export KIBANA_INSTALL_DIR="$(realpath $destDir)"
|
2020-01-28 22:55:29 +01:00
|
|
|
|
|
|
|
cd "$XPACK_DIR"
|
|
|
|
fi
|