From 7d3d3e4d42d1e04c183ccbad5f4fa66c4ada6ca3 Mon Sep 17 00:00:00 2001 From: Jarmo Isotalo Date: Wed, 22 May 2019 19:58:34 +0300 Subject: [PATCH] fix(gatsby-telemetry): enable CI name for unsupported CI & fixed cpu count (#14238) --- packages/gatsby-telemetry/src/telemetry.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/gatsby-telemetry/src/telemetry.js b/packages/gatsby-telemetry/src/telemetry.js index 8e56c9505e2c3..e3bc144152f8b 100644 --- a/packages/gatsby-telemetry/src/telemetry.js +++ b/packages/gatsby-telemetry/src/telemetry.js @@ -185,10 +185,10 @@ module.exports = class AnalyticsTracker { nodeVersion: process.version, platform: os.platform(), release: os.release(), - cpus: cpus && cpus.length > 0 && cpus[0].model, + cpus: (cpus && cpus.length > 0 && cpus[0].model) || undefined, arch: os.arch(), ci: ci.isCI, - ciName: (ci.isCI && ci.name) || undefined, + ciName: (ci.isCI && ci.name) || process.env.CI_NAME || undefined, docker: isDocker(), } this.osInfo = osInfo