ingest ciBuildName flag to telemetry along with labels (#139098)

* send isBareMetal flag to telemetry along with labels

* add isBareMetal field to tests

* add ciBuildName

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Baturalp Gurdin 2022-09-01 08:48:41 +03:00 committed by GitHub
parent 64050167af
commit 07aa6d9586
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View file

@ -26,6 +26,7 @@ export const labelsSchema = schema.object(
journeyName: schema.maybe(schema.string()),
testBuildId: schema.maybe(schema.string()),
testJobId: schema.maybe(schema.string()),
ciBuildName: schema.maybe(schema.string()),
},
{ defaultValue: {} }
);

View file

@ -154,6 +154,7 @@ export default function ({ getService }: PluginFunctionalProviderContext) {
'telemetry.labels.prId (number)',
'telemetry.labels.testBuildId (string)',
'telemetry.labels.testJobId (string)',
'telemetry.labels.ciBuildName (string)',
'telemetry.hidePrivacyStatement (boolean)',
'telemetry.optIn (boolean)',
'telemetry.sendUsageFrom (alternatives)',

View file

@ -42,6 +42,7 @@ export default async function ({ readConfigFile, log }: FtrConfigProviderContext
...(prId !== undefined ? { prId } : {}),
testJobId,
testBuildId,
ciBuildName: process.env.BUILDKITE_PIPELINE_SLUG,
};
return {