[ci] validate bootstrap changes at beginning of checks

This commit is contained in:
spalger 2021-11-16 19:17:35 -07:00
parent 96ec161569
commit 1f8565eaeb
2 changed files with 5 additions and 4 deletions

View file

@ -18,6 +18,10 @@ if ! yarn kbn bootstrap; then
yarn kbn bootstrap
fi
if [[ "$DISABLE_BOOTSTRAP_VALIDATION" != "true" ]]; then
verify_no_git_changes 'yarn kbn bootstrap'
fi
###
### upload ts-refs-cache artifacts as quickly as possible so they are available for download
###
@ -27,7 +31,3 @@ if [[ "${BUILD_TS_REFS_CACHE_CAPTURE:-}" == "true" ]]; then
gsutil cp "*.zip" 'gs://kibana-ci-ts-refs-cache/'
cd "$KIBANA_DIR"
fi
if [[ "$DISABLE_BOOTSTRAP_VALIDATION" != "true" ]]; then
verify_no_git_changes 'yarn kbn bootstrap'
fi

View file

@ -2,6 +2,7 @@
set -euo pipefail
export DISABLE_BOOTSTRAP_VALIDATION=false
.buildkite/scripts/bootstrap.sh
.buildkite/scripts/steps/checks/commit/commit.sh