Skip to content

Commit 315e73c

Browse files
committed
ci(analytics): report Travis ID without the build number prefix
We need to track latency of individual jobs over time, but don't care to know what's the build ID that these jobs are associted with.
1 parent 912717f commit 315e73c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/analytics/analytics.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ let customParams = {
6060
cd6: process.env.TRAVIS_BRANCH,
6161
// Travis - Repo Slug (angular/angular)
6262
cd7: process.env.TRAVIS_REPO_SLUG,
63-
// Travis - Job ID (4.1)
64-
cd12: process.env.TRAVIS_JOB_NUMBER,
63+
// Travis - Job ID (1, 2, 3, 4, ...)
64+
cd12: process.env.TRAVIS_JOB_NUMBER ? process.env.TRAVIS_JOB_NUMBER.split('.')[1] : undefined,
6565
// HW - CPU Info
6666
cd8: `${os.cpus().length} x ${os.cpus()[0].model}`,
6767
// HW - Memory Info

0 commit comments

Comments
 (0)