kibana/.buildkite/scripts/steps/code_coverage/reporting/uploadStaticSite.sh
Tre 747b898efb
[QA][Code Coverage] Drop functional code coverage (#133553)
* [QA][Code Coverage] Drop functional code coverage

* Drop ftr configs dependency.

* Still dropping missed mentions of functional
2022-06-07 10:51:33 +01:00

20 lines
764 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
uploadPrefix="gs://elastic-bekitzur-kibana-coverage-live/"
uploadPrefixWithTimeStamp="${uploadPrefix}${TIME_STAMP}/"
cat src/dev/code_coverage/www/index.html
for x in 'src/dev/code_coverage/www/index.html' 'src/dev/code_coverage/www/404.html'; do
gsutil -m -q cp -r -a public-read -z js,css,html ${x} ${uploadPrefix}
done
#gsutil -m -q cp -r -a public-read -z js,css,html ${x} ${uploadPrefixWithTimeStamp}
#
#for x in 'target/kibana-coverage/functional-combined' 'target/kibana-coverage/jest-combined'; do
# gsutil -m -q cp -r -a public-read -z js,css,html ${x} ${uploadPrefixWithTimeStamp}
#done
gsutil -m -q cp -r -a public-read -z js,css,html 'target/kibana-coverage/jest-combined' ${uploadPrefixWithTimeStamp}