Since this is no longer part of a reporting task in Jenkins, we no longer need to re-run kbn bootstrap when generating a report. We use the PR_SOURCE_BRANCH environment variable to prevent genererating Github issues when we are on a PR. Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
21 lines
401 B
Bash
Executable file
21 lines
401 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
function report {
|
|
if [[ -z "$PR_SOURCE_BRANCH" ]]; then
|
|
node src/dev/failed_tests/cli
|
|
else
|
|
echo "Failure issues not created on pull requests"
|
|
fi
|
|
}
|
|
|
|
trap report EXIT
|
|
|
|
source src/dev/ci_setup/checkout_sibling_es.sh
|
|
|
|
export TEST_BROWSER_HEADLESS=1
|
|
export TEST_ES_FROM=${TEST_ES_FROM:-source}
|
|
|
|
"$(FORCE_COLOR=0 yarn bin)/grunt" jenkins:unit --from=source --dev;
|