From d45324a0a081f00a0813016e296c2ee67b98bb08 Mon Sep 17 00:00:00 2001 From: Dzmitry Lemechko Date: Fri, 12 Feb 2021 21:13:15 +0100 Subject: [PATCH] fix ingest script --- ...generate_team_assignments_and_ingest_coverage.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/dev/code_coverage/shell_scripts/generate_team_assignments_and_ingest_coverage.sh b/src/dev/code_coverage/shell_scripts/generate_team_assignments_and_ingest_coverage.sh index d1b4dac197e69..fb1b26ae8a37f 100644 --- a/src/dev/code_coverage/shell_scripts/generate_team_assignments_and_ingest_coverage.sh +++ b/src/dev/code_coverage/shell_scripts/generate_team_assignments_and_ingest_coverage.sh @@ -39,11 +39,14 @@ node scripts/ingest_coverage.js --verbose --path ${COVERAGE_SUMMARY_FILE} --vcsI for x in functional jest; do echo "### Ingesting coverage for ${x}" - COVERAGE_SUMMARY_FILE=target/kibana-coverage/${x}-combined/coverage-summary.json - if [[ $x == "jest" ]]; then - # Need to override COVERAGE_INGESTION_KIBANA_ROOT since json file has original intake worker path - export COVERAGE_INGESTION_KIBANA_ROOT=/dev/shm/workspace/kibana - be + + COVERAGE_SUMMARY_FILE=target/kibana-coverage/${x}-combined/coverage-summary.json + + if [[ $x == "jest" ]]; then + # Need to override COVERAGE_INGESTION_KIBANA_ROOT since json file has original intake worker path + export COVERAGE_INGESTION_KIBANA_ROOT=/dev/shm/workspace/kibana + fi + node scripts/ingest_coverage.js --verbose --path ${COVERAGE_SUMMARY_FILE} --vcsInfoPath ./VCS_INFO.txt --teamAssignmentsPath $TEAM_ASSIGN_PATH done