[testFailureReporting] only run on master/version jobs (#38497)
This commit is contained in:
parent
02848e0a22
commit
3bc5595ce3
|
@ -17,6 +17,17 @@
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!process.env.JOB_NAME) {
|
||||||
|
console.log('Unable to determine job name');
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
const [org, proj, branch] = process.env.JOB_NAME.split('+');
|
||||||
|
const masterOrVersion = branch === 'master' || branch.match(/^\d+\.(x|\d+)$/);
|
||||||
|
if (!(org === 'elastic' && proj === 'kibana' && masterOrVersion)) {
|
||||||
|
console.log('Failure issues only created on master/version branch jobs');
|
||||||
|
process.exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
require('../../setup_node_env');
|
require('../../setup_node_env');
|
||||||
require('./report').reportFailedTests();
|
require('./report').reportFailedTests();
|
||||||
|
|
|
@ -1,17 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
trap 'node "$KIBANA_DIR/src/dev/failed_tests/cli"' EXIT
|
||||||
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
|
|
||||||
|
|
||||||
"$(FORCE_COLOR=0 yarn bin)/grunt" functionalTests:ensureAllTestsInCiGroup;
|
"$(FORCE_COLOR=0 yarn bin)/grunt" functionalTests:ensureAllTestsInCiGroup;
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
trap 'node "$KIBANA_DIR/src/dev/failed_tests/cli"' EXIT
|
||||||
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
|
|
||||||
|
|
||||||
export TEST_BROWSER_HEADLESS=1
|
export TEST_BROWSER_HEADLESS=1
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
trap 'node "$KIBANA_DIR/src/dev/failed_tests/cli"' EXIT
|
||||||
function report {
|
|
||||||
if [[ -z "$PR_SOURCE_BRANCH" ]]; then
|
|
||||||
cd "$KIBANA_DIR"
|
|
||||||
node src/dev/failed_tests/cli
|
|
||||||
else
|
|
||||||
echo "Failure issues not created on pull requests"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
trap report EXIT
|
|
||||||
|
|
||||||
export TEST_BROWSER_HEADLESS=1
|
export TEST_BROWSER_HEADLESS=1
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
trap 'node "$KIBANA_DIR/src/dev/failed_tests/cli"' EXIT
|
||||||
function report {
|
|
||||||
if [[ -z "$PR_SOURCE_BRANCH" ]]; then
|
|
||||||
cd "$KIBANA_DIR"
|
|
||||||
node src/dev/failed_tests/cli
|
|
||||||
else
|
|
||||||
echo "Failure issues not created on pull requests"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
trap report EXIT
|
|
||||||
|
|
||||||
export TEST_BROWSER_HEADLESS=1
|
export TEST_BROWSER_HEADLESS=1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue