From 5322ece8fccad76dee0ec29ac84faf0c32e9adb8 Mon Sep 17 00:00:00 2001 From: spalger Date: Wed, 9 Feb 2022 15:18:52 -0700 Subject: [PATCH] add support for multiple possible job names --- .../kbn-dev-utils/src/ci_stats_reporter/ci_stats_client.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_client.ts b/packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_client.ts index 73535a7342f892..77b3769fe62c17 100644 --- a/packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_client.ts +++ b/packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_client.ts @@ -15,8 +15,8 @@ import { CiStatsMetadata } from './ci_stats_metadata'; interface LatestTestGroupStatsOptions { /** The Kibana branch to get stats for, eg "main" */ branch: string; - /** The CI job name to filter builds by, eg "kibana-hourly" */ - ciJobName: string; + /** The CI job names to filter builds by, eg "kibana-hourly" */ + ciJobNames: string[]; /** Filter test groups by group type */ testGroupType?: string; } @@ -76,7 +76,7 @@ export class CiStatsClient { url: '/v1/test_group_stats', params: { branch: options.branch, - ci_job_name: options.ciJobName, + ci_job_name: options.ciJobNames.join(','), test_group_type: options.testGroupType, }, headers: {