Onecompileman-jenkins-ng-lint-report
Onecompileman-jenkins-ng-lint-report is a Node.js CLI library for Angular that converts ng-lint JSON file to HTML generated after linting the Angular project:
Tech
Onecompileman-jenkins-ng-lint-report uses a number of open source projects to work properly:
- node.js - evented I/O for the backend
- minimist -
node.js
argument parser - chalk - colorize the output
Installation
Onecompileman-Angular4-CLI requires Node.js v8.8+ to run.
$ npm install -g onecompileman-jenkins-ng-lint-report
Commands
In your Jenkins
Job Configuration add this following shell commands, this will generate a folder of report in the workstation
with the format of {build-number}-report.html:
$ npm install$ npm install -g onecompileman-jenkins-ng-lint-report@latest$ ng set --global warnings.versionMismatch=false // Removes warning$ ng lint --format json > report.json$ ocm-report --app APP-NAME --jenkins reports --build ${BUILD_NUMBER}