Class FoundIndication


  • @ExportedBean
    public class FoundIndication
    extends Object
    Found Indication of an unsuccessful build.
    Author:
    Tomas Westling <tomas.westling@sonymobile.com>
    • Field Detail

      • FILE_ENCODING

        protected static final String FILE_ENCODING
        The platform file encoding. We assume that Jenkins uses it when writing the logs.
    • Constructor Detail

      • FoundIndication

        @Deprecated
        public FoundIndication​(Run build,
                               String originalPattern,
                               String matchingFile,
                               String matchingString)
        Standard constructor.
        Parameters:
        build - the build of this indication.
        originalPattern - the original pattern we used to match.
        matchingFile - the path to the file in which we found the match.
        matchingString - the String that makes up the match.
      • FoundIndication

        public FoundIndication​(Run build,
                               String originalPattern,
                               String matchingFile,
                               String matchingString,
                               Integer matchingLine)
        Standard constructor.
        Parameters:
        build - the build of this indication.
        originalPattern - the original pattern we used to match.
        matchingFile - the path to the file in which we found the match.
        matchingString - the String that makes up the match.
        matchingLine - the line number of the found indication
      • FoundIndication

        public FoundIndication​(String pattern,
                               String matchingFile,
                               String matchingString,
                               Integer matchingLine)
        JSON Constructor.
        Parameters:
        pattern - the pattern we used to match.
        matchingFile - the path to the file in which we found the match.
        matchingString - the String that makes up the match.
        matchingLine - the line number of the found indication
    • Method Detail

      • getMatchingFile

        @Exported
        public String getMatchingFile()
        Getter for the matching file.
        Returns:
        the file in which we found the match.
      • getPattern

        @Exported
        public String getPattern()
        Getter for the pattern.
        Returns:
        the pattern.
      • getBuild

        public Run getBuild()
        Getter for the build.
        Returns:
        the build.
      • getMatchingString

        @Exported
        public String getMatchingString()
        Getter for the matching String.
        Returns:
        the matching String.
      • getFirstMatchingLine

        @Exported
        public String getFirstMatchingLine()
        Getter for the first matching line (useful with multi-line build log indications.
        Returns:
        the first line from getMatchingString().
      • getMatchingLine

        @Exported
        public int getMatchingLine()
        The matching line number.
        Returns:
        the matching line number.
      • getMatchingHash

        @Exported
        public int getMatchingHash()
        The hash-code of the matchingString. Convenience method mostly for jelly.
        Returns:
        the hash of the line of text.