kibana/test/scripts/jenkins_xpack_package_rpm.sh
Jonathan Budzenski 5e5580e687
[package testing] Create target dir before copying artifacts (#107679)
gsutil requires a directory to exist before copying artifacts in.
Prior to https://github.com/elastic/kibana/pull/107217, a
.bootstrap-cache file was written, providing the directory for these
writes.  Now that we're no longer writing this file, we need to ensure
it exists.
2021-08-04 17:12:35 -04:00

27 lines
702 B
Bash
Executable file

#!/usr/bin/env bash
set -e
source src/dev/ci_setup/setup_env.sh
mkdir -p target
gsutil -q -m cp "gs://ci-artifacts.kibana.dev/package-testing/$GIT_COMMIT/kibana-*.rpm" ./target
export VAGRANT_CWD=test/package
vagrant up rpm --no-provision
node scripts/es snapshot \
-E network.bind_host=127.0.0.1,192.168.50.1 \
-E discovery.type=single-node \
--license=trial &
while ! timeout 1 bash -c "echo > /dev/tcp/localhost/9200"; do sleep 30; done
vagrant provision rpm
export TEST_BROWSER_HEADLESS=1
export TEST_KIBANA_URL=http://elastic:changeme@192.168.50.6:5601
export TEST_ES_URL=http://elastic:changeme@192.168.50.1:9200
cd x-pack
node scripts/functional_test_runner.js --include-tag=smoke