Class AbstractBuildEvent
- java.lang.Object
-
- io.jenkins.plugins.maplelabs.Events.Data.AbstractEvent
-
- io.jenkins.plugins.maplelabs.Events.Data.AbstractBuildEvent
-
- All Implemented Interfaces:
IEvent
- Direct Known Subclasses:
BuildEventCollectorImpl
public abstract class AbstractBuildEvent extends AbstractEvent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.jenkins.plugins.maplelabs.Events.interfaces.IEvent
IEvent.AlertType, IEvent.Priority
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBuildEvent(Run run, TaskListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getBuildNumber()
protected String
getBuildNumber(String value)
protected String
getBuildUrl()
protected String
getBuildUrl(String value)
protected Long
getDuration()
protected Long
getDuration(Long value)
protected Long
getEndTime()
protected Long
getEndTime(Long value)
protected String
getHostName()
protected String
getHostName(String value)
protected String
getJobName(String value)
protected String
getParentName()
protected String
getParentName(String defaultValue)
protected String
getResult()
protected String
getResult(String value)
protected Long
getStartTime()
protected Long
getStartTime(Long value)
protected String
getUserId()
protected void
setBuildNumber(String buildNumber)
protected void
setBuildUrl(String buildUrl)
protected void
setDuration(Long duration)
protected void
setEndTime(Long endTime)
protected void
setHostname(String hostname)
protected void
setJobName(String jobName)
protected void
setParentName(String parentName)
protected void
setResult(String result)
protected void
setStartTime(Long startTime)
protected void
setTime(Run run)
This function will set start, duration, end timeprotected void
setUserId(String userId)
-
Methods inherited from class io.jenkins.plugins.maplelabs.Events.Data.AbstractEvent
getAlert, getAlertType, getDate, getEventType, getHost, getNodeName, getNodeName, getPriority, getText, getTitle, setAlert, setDate, setEventType, setHost, setNodeName, setPriority, setText, setTitle
-
-
-
-
Constructor Detail
-
AbstractBuildEvent
protected AbstractBuildEvent(Run run, TaskListener listener) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
-
Method Detail
-
setJobName
protected void setJobName(String jobName)
-
getResult
protected String getResult()
-
setResult
protected void setResult(String result)
-
getHostName
protected String getHostName()
-
setHostname
protected void setHostname(String hostname)
-
getBuildUrl
protected String getBuildUrl()
-
setBuildUrl
protected void setBuildUrl(String buildUrl)
-
getBuildNumber
protected String getBuildNumber()
-
setBuildNumber
protected void setBuildNumber(String buildNumber)
-
getDuration
protected Long getDuration()
-
setDuration
protected void setDuration(Long duration)
-
getEndTime
protected Long getEndTime()
-
setEndTime
protected void setEndTime(Long endTime)
-
getStartTime
protected Long getStartTime()
-
setStartTime
protected void setStartTime(Long startTime)
-
getUserId
protected String getUserId()
-
setUserId
protected void setUserId(String userId)
-
setParentName
protected void setParentName(String parentName)
-
getParentName
protected String getParentName()
-
setTime
protected void setTime(Run run)
This function will set start, duration, end time- Parameters:
run
-
-
-