[ci] Conditonal webpack bundle reports (#136215)

* [ci] Conditonal webpack bundle reports

* fix

* spacing

* \n

* fix file path
This commit is contained in:
Jonathan Budzenski 2022-07-12 12:30:49 -05:00 committed by GitHub
parent 735b69d1ac
commit 8acc1466f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 7 deletions

View file

@ -75,10 +75,3 @@ steps:
automatic:
- exit_status: '-1'
limit: 3
- command: .buildkite/scripts/steps/webpack_bundle_analyzer/build_and_upload.sh
label: 'Build Webpack Bundle Analyzer reports'
agents:
queue: c2-16
key: webpack_bundle_analyzer
timeout_in_minutes: 60

View file

@ -0,0 +1,7 @@
steps:
- command: .buildkite/scripts/steps/webpack_bundle_analyzer/build_and_upload.sh
label: 'Build Webpack Bundle Analyzer reports'
agents:
queue: n2-4-spot
key: webpack_bundle_analyzer
timeout_in_minutes: 60

View file

@ -126,6 +126,10 @@ const uploadPipeline = (pipelineContent: string | object) => {
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/deploy_cloud.yml'));
}
if (GITHUB_PR_LABELS.includes('ci:build-webpack-bundle-analyzer')) {
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/webpack_bundle_analyzer.yml'));
}
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/post_build.yml'));
uploadPipeline(pipeline.join('\n'));

View file

@ -4,6 +4,8 @@ set -euo pipefail
.buildkite/scripts/bootstrap.sh
export NODE_OPTIONS="--max-old-space-size=8192"
node scripts/build_kibana_platform_plugins.js --dist --profile
mkdir -p built_assets/webpack_bundle_analyzer