Package Exports
- ci-parallel-vars
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ci-parallel-vars) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ci-parallel-vars
Get CI environment variables for parallelizing builds
Install
yarn add ci-parallel-varsUsage
const ciParallelVars = require('ci-parallel-vars');
console.log(ciParallelVars); // { index: 3, total: 10 } || nullSupports
If you want to add support for another pair, please open a pull request and add them to
index.jsand to this list.
- Knapsack / TravisCI / GitLab -
CI_NODE_INDEX/CI_NODE_TOTAL - CircleCI -
CIRCLE_NODE_INDEX/CIRCLE_NODE_TOTAL - Bitbucket Pipelines -
BITBUCKET_PARALLEL_STEP/BITBUCKET_PARALLEL_STEP_COUNT - Buildkite -
BUILDKITE_PARALLEL_JOB/BUILDKITE_PARALLEL_JOB_COUNT - Semaphore -
SEMAPHORE_CURRENT_JOB/SEMAPHORE_JOB_COUNT
One of these pairs must both be defined as numbers or ci-parallel-vars will
be null.