[ci] define matrix axes in code (#25360)

* [ci] define matrix axes in code

* [ci] add null exclude rule

* [ci] make script executable

* [ci] execute sub-scripts

* [ci] simplify job variable name

(cherry picked from commit 399c50cc5c)
This commit is contained in:
Spencer 2018-11-12 13:03:18 -08:00 committed by spalger
parent 8a11b15984
commit c6f890f633
2 changed files with 29 additions and 0 deletions

7
.ci/jobs.yml Normal file
View file

@ -0,0 +1,7 @@
JOB:
- selenium
- intake
- x-pack
# `~` is yaml for `null`
exclude: ~

22
.ci/run.sh Executable file
View file

@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -e
# move to Kibana root
cd "$(dirname "$0")/.."
case "$JOB" in
"selenium")
./test/scripts/jenkins_selenium.sh
;;
"intake")
./test/scripts/jenkins_unit.sh
;;
"x-pack")
./test/scripts/jenkins_xpack.sh
;;
*)
echo "JOB '$JOB' is not implemented."
exit 1
;;
esac