Class Build

java.lang.Object
org.jppf.doc.jenkins.Build

public class Build extends Object
Author:
Laurent Cohen
  • 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

      public String getResult()
      Get the build result.
      Returns:
      either "SUCCESS" or "FAILURE".
    • setResult

      public void setResult(String result)
      Set the build result.
      Parameters:
      result - either "SUCCESS" or "FAILURE".
    • getTestResults

      public TestResults getTestResults()
      Get the tests results.
      Returns:
      a TestResults instance.
    • setTestResults

      public void setTestResults(TestResults testResults)
      Set the tests results.
      Parameters:
      testResults - a TestResults instance.
    • toString

      public String toString()
      Overrides:
      toString in class Object