Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Jenkins Folder Icon Modificator
//Put in $JENKINS_HOME/userContent/FolderIconModificator.js
//Using the Simple Theme Plugin you then add /userContent/FolderIconModificator.js as a JavaScript URL
jQuery('.job-status-').map(function(i, job){
}.bind(this)).each(function(i, imageUrl){
type: "HEAD",
async: true,
url: '/userContent/' + imageUrl + '.png',
success: function(message){
var iconElement = jQuery('#' + imageUrl + ' > td:nth-child(1) > img')[0];
iconElement.src = '/userContent/' + imageUrl + '.png';
if('32px') != -1){
iconElement.setStyle("height: 40px; width: 40px; padding: 0 0 0 2px; margin 8px;")
iconElement.setStyle("padding: 0 0 0 2px; margin 8px;")
}, 300);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.