Klasse ParserConfiguration
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
io.jenkins.plugins.util.GlobalConfigurationItem
io.jenkins.plugins.analysis.warnings.groovy.ParserConfiguration
- Alle implementierten Schnittstellen:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,OnMaster
@Extension
@Symbol("warningsParsers")
public class ParserConfiguration
extends io.jenkins.plugins.util.GlobalConfigurationItem
Global configuration of Groovy based parsers. These parsers are dynamically registered.
- Autor:
- Ullrich Hafner
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic class
Registers all Groovy parsers as static analysis tools in theLabelProviderFactory
so that these parsers can be referenced in actions.Von Klasse geerbte verschachtelte Klassen/Schnittstellen hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Feldübersicht
Von Klasse geerbte Felder hudson.model.Descriptor
clazz
-
Konstruktorübersicht
KonstruktorBeschreibungCreates the Groovy parser configuration for the warnings plugins. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addParser
(GroovyParser parser) Adds a GroovyParser to the list without removing other parsers.Returns all registered Groovy parsers.boolean
Returns whether the current user has the permission to edit the available Groovy parsers.protected void
boolean
Returns whether a parser with the specified ID does already exist.void
deleteParser
(String parserId) Removes a GroovyParser from the list by Id.doCheckConsoleLogScanningPermitted
(boolean value) Called by jelly to validate the configured value that could be passed tosetConsoleLogScanningPermitted(boolean)
.static ParserConfiguration
Returns the singleton instance of thisParserConfiguration
.Returns the parser (wrapped into aAnalysisModelParser
instance) with the specified ID.Returns the list of available Groovy parsers.boolean
Says if the admin has permitted groovy parsers to scan a build's console log.void
setConsoleLogScanningPermitted
(boolean consoleLogScanningPermitted) Sets whether or not the admin has permitted groovy parsers to scan a build's console log.void
setParsers
(List<GroovyParser> parsers) Sets the list of available Groovy parsers to the specified elements.Von Klasse geerbte Methoden io.jenkins.plugins.util.GlobalConfigurationItem
configure, load, readResolve, save
Von Klasse geerbte Methoden jenkins.model.GlobalConfiguration
all, getDescriptor, getGlobalConfigPage
Von Klasse geerbte Methoden 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, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, self, toArray, toList, toMap
-
Konstruktordetails
-
ParserConfiguration
public ParserConfiguration()Creates the Groovy parser configuration for the warnings plugins.
-
-
Methodendetails
-
getInstance
Returns the singleton instance of thisParserConfiguration
.- Gibt zurück:
- the singleton instance
-
clearRepeatableProperties
protected void clearRepeatableProperties()- Setzt außer Kraft:
clearRepeatableProperties
in Klasseio.jenkins.plugins.util.GlobalConfigurationItem
-
getParsers
Returns the list of available Groovy parsers.- Gibt zurück:
- the Groovy parsers
-
setParsers
Sets the list of available Groovy parsers to the specified elements. Previously set parsers will be removed.- Parameter:
parsers
- the new Groovy parsers
-
deleteParser
Removes a GroovyParser from the list by Id.- Parameter:
parserId
- the ID of the Groovy parser to be deleted
-
addParser
Adds a GroovyParser to the list without removing other parsers.- Parameter:
parser
- the new Groovy parser to be added
-
isConsoleLogScanningPermitted
public boolean isConsoleLogScanningPermitted()Says if the admin has permitted groovy parsers to scan a build's console log.- Gibt zurück:
- true if groovy parsers can scan the console, false if they are limited to only scanning files on the build node.
-
setConsoleLogScanningPermitted
@DataBoundSetter public void setConsoleLogScanningPermitted(boolean consoleLogScanningPermitted) Sets whether or not the admin has permitted groovy parsers to scan a build's console log.- Parameter:
consoleLogScanningPermitted
- true if groovy parsers can scan the console, false if they are limited to only scanning files on the build node.
-
doCheckConsoleLogScanningPermitted
Called by jelly to validate the configured value that could be passed tosetConsoleLogScanningPermitted(boolean)
.- Parameter:
value
- The current value.- Gibt zurück:
FormValidation.ok()
if all is well, else a warning or error.
-
canEditParsers
public boolean canEditParsers()Returns whether the current user has the permission to edit the available Groovy parsers.- Gibt zurück:
true
if the user has the right,false
otherwise
-
getParser
Returns the parser (wrapped into aAnalysisModelParser
instance) with the specified ID.- Parameter:
id
- the ID of the parser- Gibt zurück:
- the parser
- Löst aus:
NoSuchElementException
- if there is no such parser with the given ID
-
contains
Returns whether a parser with the specified ID does already exist. Parser IDs are unique in a Jenkins instance.- Parameter:
id
- the ID of the parser- Gibt zurück:
true
if there is already a parser with the ID,false
otherwise
-
asListBoxModel
Returns all registered Groovy parsers. These are packed into aListBoxModel
in order to show them in the list box of the config.jelly view part.- Gibt zurück:
- the model of the list box
-