HTMLResource

The Jenkins project announced an unresolved security vulnerability affecting the current version of this plugin (why?):

Allows managing webjars for javascript and css libraries from within Jenkins

This plugin allow managing webjars for javascript and css libraries from within Jenkins

Jenkins HTML Resource plugin

This plugin allow managing webjars for javascript and css libraries from within Jenkins
Currently there is no easy way to add a javascript or css library to jenkins to use them for theming, creating custom widgets etc.

Below are a few screenshots of how the plugin works, (I borrowed many concepts from the scriptler plugin)

This screenshot shows that the plugin provides a new management like called 'Manage HTML resources' for managing webjars

Clicking on the Manage HTML Resources Link will take you to a page that lists all the webjars that are currently added to Jenkins

Here two webjars are already added: jquery-2.2.1.jar and datatables-1.10.11.jar

To add a new webjar click on the 'Add new Webjar Link' on the left pane. This link takes you to the following sceen

I've added bootstrap webjar in the screenshot below

Clicking on upload will take you back to the page that lists all the webjars

Clicking on the edit link will take you to a page that allows you to choose the js and css libraries that you want to include in Jenkins

Below is a screenshot of jquery webjar. The initialization script is optional. It can be used to ad custom javascript code to the header.
In the screenshot below some custom initialization code has been added to prevent jQuery from conflicting with prototype.js

Below is a screenshot showing the chrome debugger that the js libraries have been downloaded from webjar

Below is screenshot showing the chrome debugger that the js libraries are added to the header section of html page