Interface CurrentBuildResult

    • Method Detail

      • getBuildReturnCode

        int getBuildReturnCode()
      • setBuildReturnCode

        void setBuildReturnCode​(int buildReturnCode)
      • 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
      • 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