Class GroovyScript
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<Tool>
-
- io.jenkins.plugins.analysis.core.model.Tool
-
- io.jenkins.plugins.analysis.core.model.ReportScanningTool
-
- io.jenkins.plugins.analysis.warnings.groovy.GroovyScript
-
- All Implemented Interfaces:
Describable<Tool>
,Serializable
public class GroovyScript extends ReportScanningTool
Selects aGroovyParser
using the specified ID.- Author:
- Ullrich Hafner
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GroovyScript.Descriptor
Descriptor for this static analysis tool.-
Nested classes/interfaces inherited from class io.jenkins.plugins.analysis.core.model.ReportScanningTool
ReportScanningTool.ReportScanningToolDescriptor
-
Nested classes/interfaces inherited from class io.jenkins.plugins.analysis.core.model.Tool
Tool.ToolDescriptor
-
-
Constructor Summary
Constructors Constructor Description GroovyScript(String parserId)
Creates a new instance ofGroovyScript
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description edu.hm.hafner.analysis.IssueParser
createParser()
Returns a new parser to scan a log file and return the issues reported in such a file.String
getActualId()
Returns the actual ID of the tool.String
getActualName()
Returns the actual name of the tool.StaticAnalysisLabelProvider
getLabelProvider()
Returns the associated label provider for this tool.String
getParserId()
-
Methods inherited from class io.jenkins.plugins.analysis.core.model.ReportScanningTool
getActualPattern, getDescriptor, getPattern, getReportEncoding, getSkipSymbolicLinks, scan, setPattern, setReportEncoding, setSkipSymbolicLinks
-
Methods inherited from class io.jenkins.plugins.analysis.core.model.Tool
getId, getName, getSymbolName, readResolve, setId, setJenkinsFacade, setName
-
-
-
-
Constructor Detail
-
GroovyScript
@DataBoundConstructor public GroovyScript(String parserId)
Creates a new instance ofGroovyScript
.- Parameters:
parserId
- ID of the Groovy parser
-
-
Method Detail
-
getParserId
public String getParserId()
-
createParser
public edu.hm.hafner.analysis.IssueParser createParser()
Description copied from class:ReportScanningTool
Returns a new parser to scan a log file and return the issues reported in such a file.- Specified by:
createParser
in classReportScanningTool
- Returns:
- the parser to use
-
getLabelProvider
public StaticAnalysisLabelProvider getLabelProvider()
Description copied from class:Tool
Returns the associated label provider for this tool.- Overrides:
getLabelProvider
in classTool
- Returns:
- the label provider
-
getActualId
public String getActualId()
Description copied from class:Tool
Returns the actual ID of the tool. If no user defined ID is given, then the default ID is returned.- Overrides:
getActualId
in classTool
- Returns:
- the ID
- See Also:
Tool.setId(String)
,Tool.ToolDescriptor.getId()
-
getActualName
public String getActualName()
Description copied from class:Tool
Returns the actual name of the tool. If no user defined name is given, then the default name is returned.- Overrides:
getActualName
in classTool
- Returns:
- the name
- See Also:
Tool.setName(String)
,Tool.ToolDescriptor.getName()
-
-