Currently, CircleCI aggregates build times as part of their Insights they provide users. However, the information they provide looks at trends going back as far as 90 days. This orb gives Node users a granular view of their build times by piping the information to their existing log service.
For an example code base that uses the orb, see https://github.com/choilmto/orbtoberfest-example. For every build step that matches the pattern *build*
, this orb will capture the length of time CircleCI takes to build. The orb expects npm to be able to run the script log:build_time
, where process.env
variables will passed.
Variable name | Value |
---|---|
JOB_DURATION | The time CircleCI takes to build in milliseconds |
VERSION | The version listed in package.json |
PULL_REQUESTS | Information on related pull requests |
JOB_NAME | The name of the job in config.yml |