-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[jenkins] convert baseline capture job to use tasks (#93288)
Co-authored-by: spalger <spalger@users.noreply.github.com>
- Loading branch information
1 parent
2f0212f
commit 92cd274
Showing
3 changed files
with
103 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
### | ||
### verify no git modifications caused by bootstrap | ||
### | ||
if [[ $DISABLE_BOOTSTRAP_VALIDATIONS != "true" ]]; then | ||
GIT_CHANGES="$(git ls-files --modified)" | ||
if [ "$GIT_CHANGES" ]; then | ||
echo -e "\n${RED}ERROR: 'yarn kbn bootstrap' caused changes to the following files:${C_RESET}\n" | ||
echo -e "$GIT_CHANGES\n" | ||
exit 1 | ||
fi | ||
fi | ||
|
||
|
||
### | ||
### rebuild kbn-pm distributable to ensure it's not out of date | ||
### | ||
echo " -- building kbn-pm distributable" | ||
yarn kbn run build -i @kbn/pm | ||
|
||
### | ||
### verify no git modifications | ||
### | ||
GIT_CHANGES="$(git ls-files --modified)" | ||
if [ "$GIT_CHANGES" ]; then | ||
echo -e "\n${RED}ERROR: 'yarn kbn run build -i @kbn/pm' caused changes to the following files:${C_RESET}\n" | ||
echo -e "$GIT_CHANGES\n" | ||
exit 1 | ||
fi | ||
|
||
### | ||
### rebuild plugin list to ensure it's not out of date | ||
### | ||
echo " -- building plugin list docs" | ||
node scripts/build_plugin_list_docs | ||
|
||
### | ||
### verify no git modifications | ||
### | ||
GIT_CHANGES="$(git ls-files --modified)" | ||
if [ "$GIT_CHANGES" ]; then | ||
echo -e "\n${RED}ERROR: 'node scripts/build_plugin_list_docs' caused changes to the following files:${C_RESET}\n" | ||
echo -e "$GIT_CHANGES\n" | ||
exit 1 | ||
fi | ||
|
||
### | ||
### rebuild plugin api docs to ensure it's not out of date | ||
### | ||
echo " -- building api docs" | ||
node scripts/build_api_docs | ||
|
||
### | ||
### verify no api changes | ||
### | ||
GIT_CHANGES="$(git ls-files --modified)" | ||
if [ "$GIT_CHANGES" ]; then | ||
echo -e "\n${RED}ERROR: 'node scripts/build_api_docs' caused changes to the following files:${C_RESET}\n" | ||
echo -e "$GIT_CHANGES\n" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters