Package jetbrains.buildServer
Class BuildProblemData
- java.lang.Object
-
- jetbrains.buildServer.BuildProblemData
-
- All Implemented Interfaces:
BuildProblemTypes
,ObjectSizeEstimate
- Direct Known Subclasses:
BuildProblemDataEx
public class BuildProblemData extends Object implements BuildProblemTypes, ObjectSizeEstimate
Represents a problem that causes the build failure.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ADDITIONAL_DATA_KEY
static String
INIT_ERROR_PREFIX
static int
MAX_ATTR_NAME_LENGTH
static int
MAX_ATTR_VALUE_LENGTH
static int
MAX_DESCRIPTION_LENGTH
static int
MAX_IDENTITY_LENGTH
static int
MAX_TYPE_LENGTH
-
Fields inherited from interface jetbrains.buildServer.BuildProblemTypes
TC_BUILD_REVISION_NOT_FOUND, TC_COMPILATION_ERROR_TYPE, TC_ERROR_MESSAGE_TYPE, TC_EXECUTION_TIMEOUT_TYPE, TC_EXIT_CODE_TYPE, TC_FAILED_TESTS_TYPE, TC_JVM_CRASH_TYPE, TC_OOME_TYPE, TC_USER_PROVIDED_TYPE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
asString(String identity, String type, String description)
static BuildProblemData
createBuildProblem(String identity, String type, String description)
static BuildProblemData
createBuildProblem(String identity, String type, String description, String additionalData)
Creates new build problemboolean
equals(Object o)
String
getAdditionalData()
Any kind of additional data serialized to a stringString
getDescription()
Human-readable build problem descriptionlong
getEstimatedSize()
String
getIdentity()
Build problem identity, that uniquely identifies the particular problem occurrence details If during a build two build problems have the same identity, the second one overrides the first Should be a valid java idString
getType()
Build problem type, that is the same for all problems of each class, e.g.int
hashCode()
String
toString()
-
-
-
Field Detail
-
MAX_IDENTITY_LENGTH
public static final int MAX_IDENTITY_LENGTH
- See Also:
- Constant Field Values
-
MAX_TYPE_LENGTH
public static final int MAX_TYPE_LENGTH
- See Also:
- Constant Field Values
-
MAX_DESCRIPTION_LENGTH
public static final int MAX_DESCRIPTION_LENGTH
- See Also:
- Constant Field Values
-
MAX_ATTR_NAME_LENGTH
public static final int MAX_ATTR_NAME_LENGTH
- See Also:
- Constant Field Values
-
MAX_ATTR_VALUE_LENGTH
public static final int MAX_ATTR_VALUE_LENGTH
- See Also:
- Constant Field Values
-
ADDITIONAL_DATA_KEY
public static final String ADDITIONAL_DATA_KEY
- See Also:
- Constant Field Values
-
INIT_ERROR_PREFIX
public static final String INIT_ERROR_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
createBuildProblem
public static BuildProblemData createBuildProblem(String identity, String type, String description, String additionalData)
Creates new build problem- Parameters:
identity
- Build problem identity, that uniquely identifies the particular problem occurrence details If during a build two build problems have the same identity, the second one overrides the first If the same problem occurs in following builds the identity should be the same Should be a valid java id Shouldn't be longer than MAX_IDENTITY_LENGTH characterstype
- Build problem type, that is the same for all problems of each class, e.g. BUILD_FAILURE_ON_MESSAGE Shouldn't be longer than MAX_TYPE_LENGTH charactersdescription
- Human-readable build problem description Values longer than MAX_DESCRIPTION_LENGTH characters will be truncatedadditionalData
- Any kind of additional data serialized to a string or null, empty value will be treated as null Shouldn't be longer than MAX_ATTR_VALUE_LENGTH characters- Throws:
IllegalArgumentException
- if any parameter is null or if identity or type have illegal length- Since:
- 8.0
-
createBuildProblem
public static BuildProblemData createBuildProblem(String identity, String type, String description)
-
getEstimatedSize
public long getEstimatedSize()
- Specified by:
getEstimatedSize
in interfaceObjectSizeEstimate
- Returns:
- estimated size of this object in bytes
-
getType
public String getType()
Build problem type, that is the same for all problems of each class, e.g. BUILD_FAILURE_ON_MESSAGE- Returns:
- see above
-
getIdentity
public String getIdentity()
Build problem identity, that uniquely identifies the particular problem occurrence details If during a build two build problems have the same identity, the second one overrides the first Should be a valid java id- Returns:
- see above
-
getDescription
public String getDescription()
Human-readable build problem description- Returns:
- see above
-
getAdditionalData
public String getAdditionalData()
Any kind of additional data serialized to a string- Returns:
- see above
- Since:
- 8.0
-
-