Class DefaultMessagesInfo


  • public class DefaultMessagesInfo
    extends java.lang.Object
    • Method Detail

      • createBlockStart

        public static BuildMessage1 createBlockStart​(java.lang.String blockName,
                                                     java.lang.String blockType)
      • createBlockStart

        public static BuildMessage1 createBlockStart​(java.lang.String blockName,
                                                     java.lang.String blockDescription,
                                                     java.lang.String blockType)
      • resetMessagesTimeService

        public static void resetMessagesTimeService()
      • now

        public static java.util.Date now()
      • createBlockStart

        public static BuildMessage1 createBlockStart​(java.lang.String blockName,
                                                     java.lang.String blockType,
                                                     java.util.Date timestamp)
      • createBlockStart

        public static BuildMessage1 createBlockStart​(java.lang.String blockName,
                                                     java.lang.String blockDescription,
                                                     java.lang.String blockType,
                                                     java.util.Date timestamp)
      • createTestBlockStart

        public static BuildMessage1 createTestBlockStart​(java.lang.String blockName)
      • createTestBlockStart

        public static BuildMessage1 createTestBlockStart​(java.lang.String blockName,
                                                         boolean captureStandardOutput,
                                                         java.lang.Long startTimestamp)
      • createTestBlockStart

        public static BuildMessage1 createTestBlockStart​(java.lang.String blockName,
                                                         boolean captureStandardOutput,
                                                         java.lang.Long startTimestamp,
                                                         java.lang.String locationHint)
      • createTestSuiteStart

        public static BuildMessage1 createTestSuiteStart​(java.lang.String blockName)
      • createTestSuiteEnd

        public static BuildMessage1 createTestSuiteEnd​(java.lang.String blockName)
      • createCompilationBlockStart

        public static BuildMessage1 createCompilationBlockStart​(java.lang.String blockName)
      • createBlockEnd

        public static BuildMessage1 createBlockEnd​(java.lang.String blockName,
                                                   java.lang.String blockType)
      • createBlockEnd

        public static BuildMessage1 createBlockEnd​(java.lang.String blockName,
                                                   java.lang.String blockType,
                                                   java.util.Date timestamp)
      • createTestBlockEnd

        public static BuildMessage1 createTestBlockEnd​(java.lang.String blockName,
                                                       java.lang.Integer testDuration,
                                                       java.lang.Long finishTimestamp)
      • createTestBlockEnd

        public static BuildMessage1 createTestBlockEnd​(java.lang.String blockName)
      • createCompilationBlockEnd

        public static BuildMessage1 createCompilationBlockEnd​(java.lang.String blockName)
      • createError

        public static BuildMessage1 createError​(java.lang.String message,
                                                java.lang.String type,
                                                java.lang.Throwable throwable)
      • createError

        public static BuildMessage1 createError​(java.lang.Throwable throwable)
      • createError

        public static BuildMessage1 createError​(java.lang.Throwable throwable,
                                                Status status)
      • createError

        public static BuildMessage1 createError​(java.lang.String message,
                                                java.lang.String stackTrace,
                                                Status status)
      • createTextMessage

        public static BuildMessage1 createTextMessage​(java.lang.String message)
      • createTextMessage

        public static BuildMessage1 createTextMessage​(java.lang.String message,
                                                      Status status)
      • createTextMessage

        public static BuildMessage1 createTextMessage​(BuildMessage1 sourceMessage,
                                                      java.lang.String newText)
        Creates text message by copying all attributes except text from the source message
        Parameters:
        sourceMessage - source message
        newText - text for message
        Returns:
        new text message
      • createMessage

        public static BuildMessage1 createMessage​(BuildMessage1 sourceMessage,
                                                  java.lang.Object newValue)
        Creates build message by copying all attributes except value from the source message
        Parameters:
        sourceMessage - source message
        newValue - new value for message
        Returns:
        new message
        Since:
        9.1.7
      • createPreparationEndMessage

        public static BuildMessage1 createPreparationEndMessage​(java.lang.String message)
      • createProgressMessage

        public static BuildMessage1 createProgressMessage​(java.lang.String message)
      • createBuildFailure

        public static BuildMessage1 createBuildFailure​(java.lang.String message)
        Create message which fails the build with given message. Message should be short to fit into short status text
        Parameters:
        message - build failure message
        Returns:
        message which can fail the build
      • createTestIgnoreMessage

        public static BuildMessage1 createTestIgnoreMessage​(java.lang.String testName,
                                                            java.lang.String reason)
      • createTestFailure

        public static BuildMessage1 createTestFailure​(java.lang.String testName,
                                                      java.lang.Throwable th)
      • createTestFailure

        public static BuildMessage1 createTestFailure​(java.lang.String testName,
                                                      java.lang.String message,
                                                      java.lang.String stackTrace)
      • createComparisonFailed

        public static BuildMessage1 createComparisonFailed​(java.lang.String testName,
                                                           java.lang.Throwable th,
                                                           java.lang.String expected,
                                                           java.lang.String actual)
      • createComparisonFailed

        public static BuildMessage1 createComparisonFailed​(java.lang.String testName,
                                                           java.lang.String th,
                                                           java.lang.String message,
                                                           java.lang.String expected,
                                                           java.lang.String actual)
      • createTestStderr

        public static BuildMessage1 createTestStderr​(java.lang.String testName,
                                                     java.lang.String output)
      • createTestStdout

        public static BuildMessage1 createTestStdout​(java.lang.String testName,
                                                     java.lang.String output)
      • createFlowMessage

        public static BuildMessage1 createFlowMessage​(java.lang.String flowId,
                                                      java.lang.String parentFlowId)
      • createFlowFinishedMessage

        public static BuildMessage1 createFlowFinishedMessage​(java.lang.String flowId)
      • createTestNavigationInfo

        public static BuildMessage1 createTestNavigationInfo​(java.util.Map attributes)
      • createTestRetry

        public static BuildMessage1 createTestRetry​(boolean enableTestRetry)
      • debugMessage

        public static BuildMessage1 debugMessage​(java.lang.String text)
        Parameters:
        text - verbose message for build log, the text is not searched for TeamCity service messages
        Returns:
        message which will be logged as Debug message to build log and won't be shown by default
        Since:
        2019.1
      • getMessageLink

        public static java.lang.String getMessageLink​(java.util.Collection<java.lang.String> tags)
      • createCheckoutDirMessage

        public static BuildMessage1 createCheckoutDirMessage​(java.lang.String checkoutDirPath)