Class BuildData
- java.lang.Object
-
- jenkins.plugins.logstash.persistence.BuildData
-
- All Implemented Interfaces:
Serializable
public class BuildData extends Object implements Serializable
POJO for mapping build info to JSON.- Since:
- 1.0.0
- Author:
- Rusty Gerard
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BuildData.TestData
-
Constructor Summary
Constructors Constructor Description BuildData(AbstractBuild<?,?> build, Date currentTime, TaskListener listener)
BuildData(Run<?,?> build, Date currentTime, TaskListener listener, String stageName, String agentName)
-
Method Summary
-
-
-
Constructor Detail
-
BuildData
public BuildData(AbstractBuild<?,?> build, Date currentTime, TaskListener listener)
-
BuildData
public BuildData(Run<?,?> build, Date currentTime, TaskListener listener, String stageName, String agentName)
-
-
Method Detail
-
updateResult
public void updateResult()
-
toJson
public net.sf.json.JSONObject toJson()
-
getId
public String getId()
-
setId
public void setId(String id)
-
getResult
public String getResult()
-
setResult
public void setResult(Result result)
-
getProjectName
public String getProjectName()
-
setProjectName
public void setProjectName(String projectName)
-
getFullProjectName
public String getFullProjectName()
-
setFullProjectName
public void setFullProjectName(String fullProjectName)
-
getDisplayName
public String getDisplayName()
-
setDisplayName
public void setDisplayName(String displayName)
-
getFullDisplayName
public String getFullDisplayName()
-
setFullDisplayName
public void setFullDisplayName(String fullDisplayName)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getUrl
public String getUrl()
-
setUrl
public void setUrl(String url)
-
getBuildHost
public String getBuildHost()
-
setBuildHost
public void setBuildHost(String buildHost)
-
getBuildLabel
public String getBuildLabel()
-
setBuildLabel
public void setBuildLabel(String buildLabel)
-
getBuildNum
public int getBuildNum()
-
setBuildNum
public void setBuildNum(int buildNum)
-
getBuildDuration
public long getBuildDuration()
-
setBuildDuration
public void setBuildDuration(long buildDuration)
-
getTimestamp
public String getTimestamp()
-
setTimestamp
public void setTimestamp(Calendar timestamp)
-
getRootProjectName
public String getRootProjectName()
-
setRootProjectName
public void setRootProjectName(String rootProjectName)
-
getRootFullProjectName
public String getRootFullProjectName()
-
setRootFullProjectName
public void setRootFullProjectName(String rootFullProjectName)
-
getRootProjectDisplayName
public String getRootProjectDisplayName()
-
setRootProjectDisplayName
public void setRootProjectDisplayName(String rootProjectDisplayName)
-
getRootBuildNum
public int getRootBuildNum()
-
setRootBuildNum
public void setRootBuildNum(int rootBuildNum)
-
setSensitiveBuildVariables
public void setSensitiveBuildVariables(Set<String> sensitiveBuildVariables)
-
getTestResults
public BuildData.TestData getTestResults()
-
setTestResults
public void setTestResults(BuildData.TestData testResults)
-
getStageName
public String getStageName()
-
setStageName
public void setStageName(String stageName)
-
getAgentName
public String getAgentName()
-
setAgentName
public void setAgentName(String agentName)
-
-