Klasse Tool
- Alle implementierten Schnittstellen:
Describable<Tool>
,Serializable
- Bekannte direkte Unterklassen:
AxivionSuite
,OpenTasks
,ReportScanningTool
A tool that can produce a
report of issues
in some way. If your tool produces issues by scanning a
compiler log or static analysis report file, consider deriving from AnalysisModelParser
.- Autor:
- Ullrich Hafner
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the actual ID of the tool.Returns the actual name of the tool.getId()
Returns the associated label provider for this tool.getName()
Returns theSymbol
name of this tool.protected Object
Called after de-serialization to retain backward compatibility.abstract edu.hm.hafner.analysis.Report
scan
(Run<?, ?> run, FilePath workspace, Charset sourceCodeEncoding, io.jenkins.plugins.util.LogHandler logger) Scans the results of a build for issues.void
Overrides the default ID of the results.void
setJenkinsFacade
(io.jenkins.plugins.util.JenkinsFacade jenkinsFacade) void
Overrides the name of the results.
-
Konstruktordetails
-
Tool
public Tool()
-
-
Methodendetails
-
setJenkinsFacade
public void setJenkinsFacade(io.jenkins.plugins.util.JenkinsFacade jenkinsFacade) -
readResolve
Called after de-serialization to retain backward compatibility.- Gibt zurück:
- this
-
setId
Overrides the default ID of the results. The ID is used as URL of the results and as identifier in UI elements. If no ID is given, then the default ID is used, see correspondingTool.ToolDescriptor
.- Parameter:
id
- the ID of the results- Siehe auch:
-
getId
-
getActualId
Returns the actual ID of the tool. If no user defined ID is given, then the default ID is returned.- Gibt zurück:
- the ID
- Siehe auch:
-
setName
Overrides the name of the results. The name is used for all labels in the UI. If no name is given, then the default name is used, see correspondingTool.ToolDescriptor
.- Parameter:
name
- the name of the results- Siehe auch:
-
getName
-
getActualName
Returns the actual name of the tool. If no user defined name is given, then the default name is returned.- Gibt zurück:
- the name
- Siehe auch:
-
getSymbolName
Returns theSymbol
name of this tool.- Gibt zurück:
- the name of this tool, or "undefined" if no symbol has been defined
-
getLabelProvider
Returns the associated label provider for this tool.- Gibt zurück:
- the label provider
-
getDescriptor
- Angegeben von:
getDescriptor
in SchnittstelleDescribable<Tool>
- Setzt außer Kraft:
getDescriptor
in KlasseAbstractDescribableImpl<Tool>
-
scan
public abstract edu.hm.hafner.analysis.Report scan(Run<?, ?> run, FilePath workspace, Charset sourceCodeEncoding, io.jenkins.plugins.util.LogHandler logger) throws edu.hm.hafner.analysis.ParsingException, edu.hm.hafner.analysis.ParsingCanceledExceptionScans the results of a build for issues. This method is invoked on Jenkins master. I.e., if a tool wants to process some build results it is required to run aMasterToSlaveCallable
.- Parameter:
run
- the buildworkspace
- the workspace of the buildsourceCodeEncoding
- the encoding to use to read source fileslogger
- the logger- Gibt zurück:
- the created report
- Löst aus:
edu.hm.hafner.analysis.ParsingException
- Signals that during parsing a non recoverable error has been occurrededu.hm.hafner.analysis.ParsingCanceledException
- Signals that the parsing has been aborted by the user
-