20 lines
472 B
Bash
Executable file
20 lines
472 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
if [[ ! -d "$KIBANA_BUILD_LOCATION/bin" ]]; then
|
|
echo '--- Downloading Distribution and Plugin artifacts'
|
|
|
|
cd "$WORKSPACE"
|
|
|
|
buildkite-agent artifact download kibana-default.tar.gz .
|
|
buildkite-agent artifact download kibana-default-plugins.tar.gz .
|
|
|
|
mkdir -p "$KIBANA_BUILD_LOCATION"
|
|
tar -xzf kibana-default.tar.gz -C "$KIBANA_BUILD_LOCATION" --strip=1
|
|
|
|
cd "$KIBANA_DIR"
|
|
|
|
tar -xzf ../kibana-default-plugins.tar.gz
|
|
fi
|