Skip to content

Commit

Permalink
ncu-ci: add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
joyeecheung committed Jun 1, 2018
1 parent 5a88cad commit bb0d70f
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions docs/ncu-ci.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# ncu-ci

Parse the results of a Jenkins CI run in https://ci.nodejs.org/ and display
a summary for all the failures.

Supported jobs:

- [node-test-pull-request](https://ci.nodejs.org/job/node-test-pull-request)
- [node-test-commit](https://ci.nodejs.org/job/node-test-commit)
- [benchmark-node-micro-benchmarks](https://ci.nodejs.org/job/benchmark-node-micro-benchmarks/)

```
ncu-ci <command>
Commands:
ncu-ci url <url> Automatically detect CI type and show results
ncu-ci pr <jobid> Show results of a node-test-pull-request CI job
ncu-ci commit <jobid> Show results of a node-test-commit CI job
ncu-ci benchmark <jobid> Show results of a benchmark-node-micro-benchmarks CI
job
Options:
--version Show version number [boolean]
--copy Write the results as markdown to clipboard [default: false]
--help Show help [boolean]
```

## Example

Get the CI results of PR 12345 (including latest results of each type of
supported CI) and copy the summaries into clipboard:

```
ncu-ci url https://github.com/nodejs/node/pull/12345 --copy
```

Get the results of job #12345 of `node-test-pull-request`:

```
ncu-ci pr 12345
```

## Caveats

The CI failures are parsed using pattern matching and could be incorrect. Feel
free to open a pull request whenever you find a case that ncu-ci does not handle
well.

0 comments on commit bb0d70f

Please sign in to comment.