| Modifier and Type | Method and Description |
|---|---|
Theme |
build()
Constructs the theme
|
Theme.Builder |
withCssUrl(String cssUrl)
A URL to a CSS file, this can be served by Jenkins or remote.
|
Theme.Builder |
withCssUrls(List<String> cssUrls)
|
Theme.Builder |
withJavascriptUrl(String javascriptUrl)
A URL to a JavaScript file, this can be served by Jenkins or remote.
|
Theme.Builder |
withJavascriptUrls(List<String> javascriptUrls)
|
public Theme.Builder withCssUrl(String cssUrl)
The URL must be absolute (i.e. not just contain the path)
It is recommended that you serve the CSS file with Jenkins so that users update the theme by updating the plugin.
There is a convenience method ThemeManagerFactory.getCssUrl(), which will
determine the full url if you follow the convention: $JENKINS_URL/theme-$themeId/theme.css.
The theme.css suffix can be changed by overriding ThemeManagerFactoryDescriptor.getThemeCssSuffix().
cssUrl - url to a CSS file that you want loaded.public Theme.Builder withCssUrls(List<String> cssUrls)
cssUrls - a list of urls to CSS files that you want loaded.public Theme.Builder withJavascriptUrl(String javascriptUrl)
The URL must be absolute (i.e. not just contain the path)
It is recommended that you serve the JavaScript file with Jenkins so that users update the theme by updating the plugin.
There is a convenience method ThemeManagerFactory.getJavaScriptUrl(), which will
determine the full url if you follow the convention: $JENKINS_URL/theme-$themeId/theme.js.
The theme.css suffix can be changed by overriding ThemeManagerFactoryDescriptor.getThemeJsSuffix().
javascriptUrl - url to a JavaScript file that you want loaded.public Theme.Builder withJavascriptUrls(List<String> javascriptUrls)
javascriptUrls - a list of urls to JavaScript files that you want loaded.public Theme build()
Copyright © 2016–2020. All rights reserved.