Jenkins & JSHint – Integrating with Checkstyles and Violations
You need to have some form of jshint installed on your server. Instructions of how to do that are out of scope for this post, and should be able to be easily found on the internet. I used the version that installed with npm.
Jenkins Build Tasks
This is a very simple setup that uses 2 Build > Execute Shell tasks. In the first shell task I created the checkstyle output:
In the second, I created the jslint output:
Configure the checkstyles plugin to reference the created checkstyle-jshint.xml file:
Configure the violations plugin to reference the created checkstyle-jshint.xml and the jslint.xml file: