use of org.jenkins.ui.icon.Icon in project gitlab-branch-source-plugin by Argelbargel.
the class GitLabSCMIcons method iconFileName.
public static String iconFileName(String name, Size size) {
Icon icon = icons.getIconByClassSpec(classSpec(name, size));
if (icon == null) {
return null;
}
JellyContext ctx = new JellyContext();
ctx.setVariable("resURL", Stapler.getCurrentRequest().getContextPath() + Jenkins.RESOURCE_PATH);
return icon.getQualifiedUrl(ctx);
}
Aggregations