Package org.jppf.doc.jenkins
Class Build
java.lang.Object
org.jppf.doc.jenkins.Build
- Author:
- Laurent Cohen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGet the build duration in milliseconds.intGet the build number.Get the build result.longGet the build start time.Get the tests results.voidsetDuration(long duration) Set the build duration in milliseconds.voidsetNumber(int number) Set the build number.voidSet the build result.voidsetStartTime(long startTime) Set the build start time.voidsetTestResults(TestResults testResults) Set the tests results.toString()
-
Constructor Details
-
Build
public Build()
-
-
Method Details
-
getNumber
public int getNumber()Get the build number.- Returns:
- the build number as an int.
-
setNumber
public void setNumber(int number) Set the build number.- Parameters:
number- the build number as an int.
-
getStartTime
public long getStartTime()Get the build start time.- Returns:
- the build start time as a long.
-
setStartTime
public void setStartTime(long startTime) Set the build start time.- Parameters:
startTime- the build start time as a long.
-
getDuration
public long getDuration()Get the build duration in milliseconds.- Returns:
- the build duration as a long.
-
setDuration
public void setDuration(long duration) Set the build duration in milliseconds.- Parameters:
duration- the build duration as a long.
-
getResult
Get the build result.- Returns:
- either "SUCCESS" or "FAILURE".
-
setResult
Set the build result.- Parameters:
result- either "SUCCESS" or "FAILURE".
-
getTestResults
Get the tests results.- Returns:
- a TestResults instance.
-
setTestResults
Set the tests results.- Parameters:
testResults- a TestResults instance.
-
toString
-