Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

circle-step-outputter

1.1.20 • Public • Published

circle-step-outputter

Greenkeeper badge Build Status

Writes CircleCI step output to a file

Install

$ npm install --global circle-step-outputter

Usage

CLI

$ circle-step-outputter --help

  Writes CircleCI build step output to a file

  Usage
    $ circle-step-outputter [options]

  Options
    --baseFileName [Default: "test-output"]
    --repoSlug [Default: $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME]
    --buildNum [Default: $CIRCLE_BUILD_NUM]
    --token [Default: $CIRCLE_API_TOKEN]
    --step [Default: "npm test"] - a build step name substring

  Examples
    $ circle-step-outputter --repoSlug="artemv/circleci-step-outputter" --buildNum=2
  This will write test-output.json, or test-output0.txt, test-output1.txt ... test-output4.txt if there are
  multiple actions in the step (usually parallel actions).

For public/open source projects specifying token is not needed - you only need to do it for private projects. You can generate the token here: api token creation

API

const circleStepOutputter = require('circle-step-outputter');
 
circleStepOutputter({repoSlug: "artemv/circleci-step-outputter", buildNum: 2});

circleStepOutputter([options])

options

Type: Object

See CLI section for options list.

License

MIT © Artem Vasiliev

Install

npm i circle-step-outputter

DownloadsWeekly Downloads

43

Version

1.1.20

License

MIT

Unpacked Size

7.08 kB

Total Files

5

Last publish

Collaborators

  • avatar