Interface CurrentBuildResult

All Superinterfaces:
CurrentResult, Serializable
All Known Implementing Classes:
CurrentBuildResultImpl

@PublicApi public interface CurrentBuildResult extends CurrentResult
Interface that defines the partial output of a plan being built
  • Field Details

  • Method Details

    • getBuildReturnCode

      int getBuildReturnCode()
    • setBuildReturnCode

      void setBuildReturnCode(int buildReturnCode)
    • getTasksStartDate

      @NotNull @NotNull Date getTasksStartDate()
      Specified by:
      getTasksStartDate in interface CurrentResult
    • setTasksStartDate

      void setTasksStartDate(@NotNull @NotNull Date startDate)
      Specified by:
      setTasksStartDate in interface CurrentResult
    • getFailedTestResults

      @Nullable @Nullable Collection<TestResults> getFailedTestResults()
      Returns:
      TestResults for the tests that have failed during current build.
    • getSuccessfulTestResults

      @Nullable @Nullable Collection<TestResults> getSuccessfulTestResults()
      Returns:
      TestResults for the tests that were successful during current build.
    • getSkippedTestResults

      @Nullable @Nullable Collection<TestResults> getSkippedTestResults()
      Returns:
      TestResults for the tests that were skipped (or inconclusive) during current build.
    • setTestResults

      void setTestResults(@Nullable @Nullable Set<TestResults> successfulTestResults, @Nullable @Nullable Set<TestResults> failedTestResults, @Nullable @Nullable Set<TestResults> skippedTestResults)
      Set the test results for this build. You most likely dont want to use this as other tasks or plugins may have already added tests. Use appendTestResults(Set, Set, Set) instead.
      Parameters:
      successfulTestResults - a set of successful results retrieved from the build
      failedTestResults - a set of failed results retrieved from the build
      skippedTestResults - s set of skipped results retrieved from the build
    • setTestResults

      void setTestResults(@Nullable @Nullable Set<TestResults> successfulTestResults, @Nullable @Nullable Set<TestResults> failedTestResults)
      Set the test results for this build. You most likely dont want to use this as other tasks or plugins may have already added tests. Use appendTestResults(Set, Set, Set) instead.
      Parameters:
      successfulTestResults - a set of successful results retrieved from the build
      failedTestResults - a set of failed results retrieved from the build
    • appendTestResults

      void appendTestResults(@Nullable @Nullable Set<TestResults> successfulTestResults, @Nullable @Nullable Set<TestResults> failedTestResults, @Nullable @Nullable Set<TestResults> skippedTestResults)
      Append test results to the existing stored test results for this build. Leave arguments null or empty if you have nothing in that category append.
      Parameters:
      successfulTestResults - - any new successful tests
      failedTestResults - - any new failed tests
      skippedTestResults - - any new skipped tests
    • cloneAsBuildResults

      BuildResults cloneAsBuildResults(BuildContext buildContext, ReasonForBuild reasonForBuild)
    • isCheckoutSuccess

      boolean isCheckoutSuccess()
    • setCheckoutSuccess

      void setCheckoutSuccess(boolean checkoutSuccess)
    • incParserErrorsCount

      void incParserErrorsCount(int count)
      Notify about parsing errors.
      Since:
      6.0
    • getParserErrorsCount

      int getParserErrorsCount()
      Returns number of parsing errors.
      Since:
      6.0
    • getBuildWarningSummaries

      Collection<BuildWarningSummary> getBuildWarningSummaries()
      Returns:
      build warnings.