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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinished()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.longThe start time of the current scan.voidonAttached(Run<?, ?> r) voidvoidsetExceptionMessage(String exceptionMessage) Set an exception.
-
Field Details
-
FILE_NAME
Log file name.- See Also:
-
-
Constructor Details
-
ScanLogAction
public ScanLogAction()
-
-
Method Details
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getRun
The run associated with this action, called by jelly.- Returns:
- the run
-
getUrlName
- Specified by:
getUrlNamein 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:
onAttachedin interfaceRunAction2
-
onLoad
- Specified by:
onLoadin interfaceRunAction2
-