mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
* [ci-stats] ship buildkiteJobId with metrics and support backfilling (#137123)
(cherry picked from commit 0154f75445
)
* [CI] Auto-commit changed files from 'yarn kbn run build -i @kbn/pm'
Co-authored-by: Spencer <spencer@elastic.co>
This commit is contained in:
parent
e2aa2feeda
commit
11d3d5b8ca
3 changed files with 7 additions and 3 deletions
|
@ -132,11 +132,13 @@ export class CiStatsClient {
|
|||
});
|
||||
};
|
||||
|
||||
getPrReport = async (buildId: string) => {
|
||||
getPrReport = async (buildId: string, backfillJobIds: string[] = []) => {
|
||||
const resp = await this.request<CiStatsPrReport>({
|
||||
path: `v2/pr_report`,
|
||||
params: {
|
||||
path: `v3/pr_report`,
|
||||
method: 'post',
|
||||
body: {
|
||||
buildId,
|
||||
backfillJobIds,
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
@ -240,6 +240,7 @@ export class CiStatsReporter {
|
|||
body: {
|
||||
buildId,
|
||||
defaultMeta: options?.defaultMeta,
|
||||
buildkiteJobId: process.env.BUILDKITE_JOB_ID,
|
||||
metrics,
|
||||
},
|
||||
bodyDesc: `metrics: ${metrics
|
||||
|
|
1
packages/kbn-pm/dist/index.js
vendored
1
packages/kbn-pm/dist/index.js
vendored
|
@ -1731,6 +1731,7 @@ class CiStatsReporter {
|
|||
body: {
|
||||
buildId,
|
||||
defaultMeta: options === null || options === void 0 ? void 0 : options.defaultMeta,
|
||||
buildkiteJobId: process.env.BUILDKITE_JOB_ID,
|
||||
metrics
|
||||
},
|
||||
bodyDesc: `metrics: ${metrics.map(({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue