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.
This commit is contained in:
Igor Minar 2016-03-03 20:58:07 -08:00 committed by Igor Minar
parent 912717ff31
commit 315e73c47c
1 changed files with 2 additions and 2 deletions

View File

@ -60,8 +60,8 @@ let customParams = {
cd6: process.env.TRAVIS_BRANCH,
// Travis - Repo Slug (angular/angular)
cd7: process.env.TRAVIS_REPO_SLUG,
// Travis - Job ID (4.1)
cd12: process.env.TRAVIS_JOB_NUMBER,
// Travis - Job ID (1, 2, 3, 4, ...)
cd12: process.env.TRAVIS_JOB_NUMBER ? process.env.TRAVIS_JOB_NUMBER.split('.')[1] : undefined,
// HW - CPU Info
cd8: `${os.cpus().length} x ${os.cpus()[0].model}`,
// HW - Memory Info