This commit is contained in:
parent
129040db7c
commit
77d4fac563
|
@ -17,6 +17,17 @@
|
|||
* 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('./report').reportFailedTests();
|
||||
|
|
|
@ -1,17 +1,7 @@
|
|||
#!/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
|
||||
trap 'node "$KIBANA_DIR/src/dev/failed_tests/cli"' EXIT
|
||||
|
||||
"$(FORCE_COLOR=0 yarn bin)/grunt" functionalTests:ensureAllTestsInCiGroup;
|
||||
|
||||
|
|
|
@ -1,16 +1,7 @@
|
|||
#!/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
|
||||
trap 'node "$KIBANA_DIR/src/dev/failed_tests/cli"' EXIT
|
||||
|
||||
export TEST_BROWSER_HEADLESS=1
|
||||
|
||||
|
|
|
@ -1,17 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
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
|
||||
trap 'node "$KIBANA_DIR/src/dev/failed_tests/cli"' EXIT
|
||||
|
||||
export TEST_BROWSER_HEADLESS=1
|
||||
|
||||
|
|
|
@ -1,17 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
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
|
||||
trap 'node "$KIBANA_DIR/src/dev/failed_tests/cli"' EXIT
|
||||
|
||||
export TEST_BROWSER_HEADLESS=1
|
||||
|
||||
|
|
Loading…
Reference in a new issue