Package io.jenkins.plugins.report.jtreg
Class JenkinsReportJckGlobalConfig
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
io.jenkins.plugins.report.jtreg.JenkinsReportJckGlobalConfig
- All Implemented Interfaces:
ExtensionPoint,Describable<GlobalConfiguration>,Saveable,OnMaster
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
ConstructorsConstructorDescriptionJenkinsReportJckGlobalConfig(String toolsUrl, String additionalFilesToCopy, String targetFolders, String kinds, List<ComparatorLinksGroup> comparatorLinksGroups, List<ConfigItem> configItems, List<TestLink> testLinks) -
Method Summary
Modifier and TypeMethodDescriptionbooleanconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) Validates the additionalFilesToCopy field.doCheckKinds(String value) Validates the kinds field to ensure it contains only valid WriterKinds values and that no value contains spaces after trimming.doCheckTargetFolders(String value) Validates the targetFolders field to ensure: - If multiple folders are specified, they must be prefixed with nvr-db:, job-db:, or out-dir: - Warns if any specified folder does not exist Spaces in folder paths are allowed.static Stringstatic List<ComparatorLinksGroup> static List<ConfigItem> static Stringstatic Stringstatic Stringstatic Stringstatic JenkinsReportJckGlobalConfiggetKinds()booleanstatic booleanvoidsetAdditionalFilesToCopy(String additionalFilesToCopy) voidsetComparatorLinksGroups(List<ComparatorLinksGroup> comparatorLinksGroups) voidsetConfigItems(List<ConfigItem> configItems) voidvoidsetTargetFolders(String targetFolders) voidsetTestLinks(List<TestLink> testLinks) voidsetToolsUrl(String toolsUrl) Methods inherited from class jenkins.model.GlobalConfiguration
all, getDescriptor, getGlobalConfigPageMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
JenkinsReportJckGlobalConfig
@DataBoundConstructor public JenkinsReportJckGlobalConfig(String toolsUrl, String additionalFilesToCopy, String targetFolders, String kinds, List<ComparatorLinksGroup> comparatorLinksGroups, List<ConfigItem> configItems, List<TestLink> testLinks) -
JenkinsReportJckGlobalConfig
public JenkinsReportJckGlobalConfig()
-
-
Method Details
-
getInstance
-
getGlobalDiffUrl
-
getGlobalDiffUrlMissing
-
isGlobalDiffUrl
public static boolean isGlobalDiffUrl() -
isDiffToolUrlSet
public boolean isDiffToolUrlSet() -
getToolsUrl
-
setToolsUrl
-
getAdditionalFilesToCopy
-
setAdditionalFilesToCopy
-
getGlobalAdditionalFilesToCopy
-
getTargetFolders
-
setTargetFolders
-
getGlobalTargetFolders
-
getKinds
-
setKinds
-
getGlobalKinds
-
doCheckKinds
Validates the kinds field to ensure it contains only valid WriterKinds values and that no value contains spaces after trimming.- Parameters:
value- the comma-separated list of kinds- Returns:
- FormValidation result
-
doCheckAdditionalFilesToCopy
Validates the additionalFilesToCopy field. Spaces in file paths are allowed.- Parameters:
value- the comma-separated list of file paths- Returns:
- FormValidation result
-
doCheckTargetFolders
Validates the targetFolders field to ensure: - If multiple folders are specified, they must be prefixed with nvr-db:, job-db:, or out-dir: - Warns if any specified folder does not exist Spaces in folder paths are allowed.- Parameters:
value- the comma-separated list of target folders- Returns:
- FormValidation result
-
getGlobalComparatorLinksGroups
-
getComparatorLinksGroups
-
setComparatorLinksGroups
@DataBoundSetter public void setComparatorLinksGroups(List<ComparatorLinksGroup> comparatorLinksGroups) -
getGlobalConfigItems
-
getConfigItems
-
setConfigItems
-
getGlobalTestLinks
-
getTestLinks
-
setTestLinks
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException - Overrides:
configurein classGlobalConfiguration- Throws:
Descriptor.FormException
-