Class ScanLogAction
java.lang.Object
com.sonyericsson.jenkins.plugins.bfa.ScanLogAction
- All Implemented Interfaces:
Action
,ModelObject
,RunAction2
The Action for adding a link to the analysis for each run.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
finished()
To call when the scan is finished.The end time of the current scan.Get the exception message if any.Log text for the analysis.getRun()
The run associated with this action, called by jelly.long
The start time of the current scan.void
onAttached
(Run<?, ?> r) void
void
setExceptionMessage
(String exceptionMessage) Set an exception.
-
Field Details
-
FILE_NAME
Log file name.- See Also:
-
-
Constructor Details
-
ScanLogAction
public ScanLogAction()
-
-
Method Details
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getRun
The run associated with this action, called by jelly.- Returns:
- the run
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
-
getLogText
Log text for the analysis.- Returns:
- the log text, lines are separated by \n
- Throws:
IOException
- if the log can't be found
-
getStartTime
@Exported public long getStartTime()The start time of the current scan.- Returns:
- time in milliseconds
System.currentTimeMillis()
-
getEndTime
The end time of the current scan.- Returns:
- time in milliseconds
System.currentTimeMillis()
-
finished
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) protected void finished()To call when the scan is finished. -
getExceptionMessage
Get the exception message if any.- Returns:
- the first exception faced during scan
-
setExceptionMessage
Set an exception.- Parameters:
exceptionMessage
- the exception message to set
-
onAttached
- Specified by:
onAttached
in interfaceRunAction2
-
onLoad
- Specified by:
onLoad
in interfaceRunAction2
-