Package jetbrains.buildServer.messages
Class DefaultMessagesInfo
- java.lang.Object
-
- jetbrains.buildServer.messages.DefaultMessagesInfo
-
public final class DefaultMessagesInfo extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
DefaultMessagesInfo.MessagesTimeService
-
Field Summary
-
Method Summary
-
-
-
Field Detail
-
MSG_FLOW
public static final String MSG_FLOW
- See Also:
- Constant Field Values
-
MSG_FLOW_FINISHED
public static final String MSG_FLOW_FINISHED
- See Also:
- Constant Field Values
-
DEFAULT_FLOW_ID
public static final String DEFAULT_FLOW_ID
- See Also:
- Constant Field Values
-
TAG_INTERNAL
public static final String TAG_INTERNAL
- See Also:
- Constant Field Values
-
TAG_SERVER
public static final String TAG_SERVER
- See Also:
- Constant Field Values
-
TAG_REST
public static final String TAG_REST
- See Also:
- Constant Field Values
-
TAG_AS_IS
public static final String TAG_AS_IS
- See Also:
- Constant Field Values
-
TAG_MSG_LINK
public static final String TAG_MSG_LINK
- See Also:
- Constant Field Values
-
TAG_CHECKOUT_DIR
public static final String TAG_CHECKOUT_DIR
- See Also:
- Constant Field Values
-
CHECKOUT_DIRECTORY_MSG_PREFIX
public static final String CHECKOUT_DIRECTORY_MSG_PREFIX
- See Also:
- Constant Field Values
-
AGENT_TIMEZONE_PREFIX
public static final String AGENT_TIMEZONE_PREFIX
- See Also:
- Constant Field Values
-
SOURCE_ID
public static final String SOURCE_ID
- See Also:
- Constant Field Values
-
MSG_ERROR
public static final String MSG_ERROR
- See Also:
- Constant Field Values
-
MSG_TEXT
public static final String MSG_TEXT
- See Also:
- Constant Field Values
-
MSG_BUILD_FAILURE
public static final String MSG_BUILD_FAILURE
- See Also:
- Constant Field Values
-
MSG_BLOCK_START
public static final String MSG_BLOCK_START
- See Also:
- Constant Field Values
-
MSG_BLOCK_END
public static final String MSG_BLOCK_END
- See Also:
- Constant Field Values
-
MSG_PREPARATION_END_STAGE
public static final String MSG_PREPARATION_END_STAGE
- See Also:
- Constant Field Values
-
MSG_PROGRESS_STAGE
public static final String MSG_PROGRESS_STAGE
- See Also:
- Constant Field Values
-
MSG_TEST_IGNORED
public static final String MSG_TEST_IGNORED
- See Also:
- Constant Field Values
-
MSG_TEST_OUTPUT
public static final String MSG_TEST_OUTPUT
- See Also:
- Constant Field Values
-
MSG_TEST_FAILURE
public static final String MSG_TEST_FAILURE
- See Also:
- Constant Field Values
-
MSG_TEST_METADATA
public static final String MSG_TEST_METADATA
- Since:
- 2018.2
- See Also:
- Constant Field Values
-
MSG_TEST_RETRY
public static final String MSG_TEST_RETRY
- See Also:
- Constant Field Values
-
MSG_TEST_NAVIGATION_INFO
public static final String MSG_TEST_NAVIGATION_INFO
- See Also:
- Constant Field Values
-
BLOCK_TYPE_BUILD
public static final String BLOCK_TYPE_BUILD
- See Also:
- Constant Field Values
-
BLOCK_TYPE_MODULE
public static final String BLOCK_TYPE_MODULE
- See Also:
- Constant Field Values
-
BLOCK_TYPE_PROGRESS
public static final String BLOCK_TYPE_PROGRESS
- See Also:
- Constant Field Values
-
BLOCK_TYPE_TEST
public static final String BLOCK_TYPE_TEST
- See Also:
- Constant Field Values
-
BLOCK_TYPE_TEST_SUITE
public static final String BLOCK_TYPE_TEST_SUITE
- See Also:
- Constant Field Values
-
BLOCK_TYPE_COMPILATION
public static final String BLOCK_TYPE_COMPILATION
- See Also:
- Constant Field Values
-
BLOCK_TYPE_TARGET
public static final String BLOCK_TYPE_TARGET
- See Also:
- Constant Field Values
-
BLOCK_TYPE_CHECKOUT
public static final String BLOCK_TYPE_CHECKOUT
- See Also:
- Constant Field Values
-
BLOCK_TYPE_ARTIFACTS_RESOLVING
public static final String BLOCK_TYPE_ARTIFACTS_RESOLVING
- See Also:
- Constant Field Values
-
BLOCK_TYPE_BUILD_STEP
public static final String BLOCK_TYPE_BUILD_STEP
- See Also:
- Constant Field Values
-
MSG_BUILD_PROBLEM
public static final String MSG_BUILD_PROBLEM
- See Also:
- Constant Field Values
-
MSG_MUTE_PROBLEMS
public static final String MSG_MUTE_PROBLEMS
This message type allows to mute all current build problems- See Also:
- Constant Field Values
-
-
Method Detail
-
createBlockStart
public static BuildMessage1 createBlockStart(@NotNull String blockName, @NotNull String blockType)
-
createBlockStart
public static BuildMessage1 createBlockStart(String blockName, String blockDescription, String blockType)
-
createMuteProblemsMessage
public static BuildMessage1 createMuteProblemsMessage(@NotNull Date timestamp, @Nullable String comment)
-
setMessagesTimeService
public static void setMessagesTimeService(DefaultMessagesInfo.MessagesTimeService service)
-
resetMessagesTimeService
public static void resetMessagesTimeService()
-
now
public static Date now()
-
createBlockStart
public static BuildMessage1 createBlockStart(@NotNull String blockName, @NotNull String blockType, Date timestamp)
-
createBlockStart
public static BuildMessage1 createBlockStart(@NotNull String blockName, @Nullable String blockDescription, @NotNull String blockType, Date timestamp)
-
createTestBlockStart
public static BuildMessage1 createTestBlockStart(@NotNull String blockName, @NotNull String flowId)
-
createTestBlockStart
public static BuildMessage1 createTestBlockStart(@NotNull String blockName)
-
createTestBlockStart
public static BuildMessage1 createTestBlockStart(@NotNull String blockName, boolean captureStandardOutput, Long startTimestamp)
-
createTestBlockStart
public static BuildMessage1 createTestBlockStart(@NotNull String blockName, boolean captureStandardOutput, Long startTimestamp, String locationHint)
-
createTestSuiteStart
public static BuildMessage1 createTestSuiteStart(@NotNull String blockName, @NotNull String flowId)
-
createTestSuiteStart
public static BuildMessage1 createTestSuiteStart(@NotNull String blockName)
-
createTestSuiteEnd
public static BuildMessage1 createTestSuiteEnd(String blockName)
-
createCompilationBlockStart
public static BuildMessage1 createCompilationBlockStart(String blockName)
-
createBlockEnd
public static BuildMessage1 createBlockEnd(String blockName, String blockType)
-
createBlockEnd
public static BuildMessage1 createBlockEnd(@NotNull String blockName, @NotNull String blockType, Date timestamp)
-
createTestBlockEnd
public static BuildMessage1 createTestBlockEnd(@NotNull String blockName, Integer testDuration, Long finishTimestamp)
-
createTestBlockEnd
public static BuildMessage1 createTestBlockEnd(@NotNull String blockName, @NotNull String flowId)
-
createTestBlockEnd
public static BuildMessage1 createTestBlockEnd(@NotNull String blockName)
-
createCompilationBlockEnd
public static BuildMessage1 createCompilationBlockEnd(String blockName)
-
createError
public static BuildMessage1 createError(String message, String type, Throwable throwable)
-
createError
public static BuildMessage1 createError(Throwable throwable)
-
createError
public static BuildMessage1 createError(Throwable throwable, Status status)
-
createError
public static BuildMessage1 createError(String message, String stackTrace, Status status)
-
createError
public static BuildMessage1 createError(Status status, ErrorData data)
-
createTextMessage
public static BuildMessage1 createTextMessage(@NotNull String message, @NotNull String flowId)
-
createTextMessage
public static BuildMessage1 createTextMessage(@Nullable String message)
-
createTextMessage
public static BuildMessage1 createTextMessage(String message, Status status)
-
createTextMessage
public static BuildMessage1 createTextMessage(BuildMessage1 sourceMessage, String newText)
Creates text message by copying all attributes except text from the source message- Parameters:
sourceMessage
- source messagenewText
- text for message- Returns:
- new text message
-
createMessage
public static BuildMessage1 createMessage(BuildMessage1 sourceMessage, Object newValue)
Creates build message by copying all attributes except value from the source message- Parameters:
sourceMessage
- source messagenewValue
- new value for message- Returns:
- new message
- Since:
- 9.1.7
-
createPreparationEndMessage
public static BuildMessage1 createPreparationEndMessage(String message)
-
createProgressMessage
public static BuildMessage1 createProgressMessage(String message)
-
createBuildFailure
public static BuildMessage1 createBuildFailure(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(String testName, String reason)
-
createTestFailure
public static BuildMessage1 createTestFailure(@NotNull String testName, @NotNull Throwable th, @NotNull String flowId)
-
createTestFailure
public static BuildMessage1 createTestFailure(@NotNull String testName, @NotNull Throwable th)
-
createTestFailure
public static BuildMessage1 createTestFailure(String testName, String message, String stackTrace)
-
createComparisonFailed
public static BuildMessage1 createComparisonFailed(String testName, Throwable th, String expected, String actual)
-
createComparisonFailed
public static BuildMessage1 createComparisonFailed(String testName, String th, String message, String expected, String actual)
-
createTestStderr
public static BuildMessage1 createTestStderr(String testName, String output)
-
createTestStdout
public static BuildMessage1 createTestStdout(String testName, String output, @NotNull String flowId)
-
createTestStdout
public static BuildMessage1 createTestStdout(String testName, String output)
-
createFlowMessage
public static BuildMessage1 createFlowMessage(String flowId, String parentFlowId)
-
createFlowFinishedMessage
public static BuildMessage1 createFlowFinishedMessage(String flowId)
-
createTestNavigationInfo
public static BuildMessage1 createTestNavigationInfo(Map attributes)
-
createTestRetry
public static BuildMessage1 createTestRetry(boolean enableTestRetry)
-
debugMessage
public static BuildMessage1 debugMessage(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
-
internalize
public static BuildMessage1 internalize(BuildMessage1 message)
-
addMessageLink
public static BuildMessage1 addMessageLink(BuildMessage1 message1, Integer targetMessageIndex)
-
getMessageLink
public static String getMessageLink(Collection<String> tags)
-
createBuildProblemMessage
public static BuildMessage1 createBuildProblemMessage(BuildProblemData buildProblem)
-
createCheckoutDirMessage
public static BuildMessage1 createCheckoutDirMessage(String checkoutDirPath)
-
createTestMetadata
@NotNull public static BuildMessage1 createTestMetadata(@NotNull TestMetadata metadata)
-
-