$ cnpm install ci-parallel-vars
Get CI environment variables for parallelizing builds
yarn add ci-parallel-vars
const ciParallelVars = require('ci-parallel-vars');
console.log(ciParallelVars); // { index: 3, total: 10 } || null
If you want to add support for another pair, please open a pull request and add them to
index.jsand to this list.
CI_NODE_INDEX/CI_NODE_TOTALCIRCLE_NODE_INDEX/CIRCLE_NODE_TOTALBITBUCKET_PARALLEL_STEP/BITBUCKET_PARALLEL_STEP_COUNTBUILDKITE_PARALLEL_JOB/BUILDKITE_PARALLEL_JOB_COUNTSEMAPHORE_CURRENT_JOB/SEMAPHORE_JOB_COUNTOne of these pairs must both be defined as numbers or ci-parallel-vars will
be null.
Copyright 2013 - present © cnpmjs.org | Home |