mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[CI] Enable kibana build reuse where possible (#136653)
This commit is contained in:
parent
241406a8df
commit
a74c3fab96
3 changed files with 15 additions and 3 deletions
|
@ -26,7 +26,12 @@ export async function onComplete() {
|
|||
return;
|
||||
}
|
||||
|
||||
const report = await ciStats.getPrReport(process.env.CI_STATS_BUILD_ID);
|
||||
const backfillJobIds: string[] = [];
|
||||
if (process.env.KIBANA_REUSABLE_BUILD_JOB_ID) {
|
||||
backfillJobIds.push(process.env.KIBANA_REUSABLE_BUILD_JOB_ID);
|
||||
}
|
||||
|
||||
const report = await ciStats.getPrReport(process.env.CI_STATS_BUILD_ID, backfillJobIds);
|
||||
if (report?.md) {
|
||||
buildkite.setMetadata('pr_comment:ci_stats_report:body', report.md);
|
||||
|
||||
|
|
|
@ -38,8 +38,7 @@
|
|||
"kibana_versions_check": true,
|
||||
"kibana_build_reuse": true,
|
||||
"kibana_build_reuse_pipeline_slugs": ["kibana-pull-request", "kibana-on-merge"],
|
||||
"kibana_build_reuse_regexes": ["^test/", "^x-pack/test/"],
|
||||
"kibana_build_reuse_label": "ci:reuse-kibana-build"
|
||||
"kibana_build_reuse_regexes": ["^test/", "^x-pack/test/"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -20,3 +20,11 @@ if [[ ! "${ES_SNAPSHOT_MANIFEST:-}" ]]; then
|
|||
ES_SNAPSHOT_MANIFEST_DEFAULT="https://storage.googleapis.com/$BUCKET/manifest.json"
|
||||
buildkite-agent meta-data set ES_SNAPSHOT_MANIFEST_DEFAULT "$ES_SNAPSHOT_MANIFEST_DEFAULT"
|
||||
fi
|
||||
|
||||
if [[ "${KIBANA_BUILD_ID:-}" && "${KIBANA_REUSABLE_BUILD_JOB_URL:-}" ]]; then
|
||||
cat << EOF | buildkite-agent annotate --style default --context kibana-reusable-build
|
||||
This build is using the Kibana distributable built from a different job, as the changes since this build do not seem to require a rebuild.
|
||||
|
||||
See job here: $KIBANA_REUSABLE_BUILD_JOB_URL
|
||||
EOF
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue