Class BuildProblemData

    • 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 characters
        type - 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 characters
        description - Human-readable build problem description Values longer than MAX_DESCRIPTION_LENGTH characters will be truncated
        additionalData - 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
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object