Skip to content

Commit

Permalink
add support for multiple possible job names
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Feb 9, 2022
1 parent 615d85f commit 5322ece
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit 5322ece

Please sign in to comment.