1.0.13 • Published 6 years ago

circleci-job-chain v1.0.13

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

circleci-job-chain

A client tool for chaining circleci jobs together and waiting for them to finish. Useful for things like automation testing.

This library is intended to be used from a circleci config rather than cloning the repo your want to run a task from.

Usage

npm install -g circleci-job-chain

circleci-job-chain --organization mygithuborg \
                   --project mygithubproject \
                   --circle-token mycircletoken
Options
--organization (required)
--project (required)
--circle-token (required)
--branch
--pollInterval (ms)
--buildOptions
--errorThreshold

--buildOptions uses yargs https://github.com/yargs/yargs/blob/master/docs/tricks.md#objects

Example

--buildOptions.TEST_TASK='testMapping'

results in
{
  TEST_TASK: 'testMapping'
}

Pros & Cons using this

Pros

  • Configuration is all kept in one place. The secret environment variables dont have to be propagated to multiple repos in circleci
  • Potentially simpler to run an npm script with a circleci token than cloning a repo and configuring it to work.

Cons

  • Uses up an extra executer. Could be potentially expensive if you have many of these jobs tying up executers at once.
1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.9

6 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.3

7 years ago

1.0.1

7 years ago