Class BuildLogIndication.BuildLogIndicationDescriptor

    • Constructor Detail

      • BuildLogIndicationDescriptor

        public BuildLogIndicationDescriptor()
    • Method Detail

      • doMatchText

        public FormValidation doMatchText​(@QueryParameter("pattern")
                                          String testPattern,
                                          @QueryParameter("testText")
                                          String testText,
                                          @QueryParameter("textSourceIsUrl")
                                          boolean textSourceIsUrl)
        Tests if a text matches a pattern.
        Parameters:
        testPattern - a pattern.
        testText - a text.
        textSourceIsUrl - a boolean indicating whether testText is a URL containing the text to be matched against pattern or a text that should be matched directly against pattern.
        Returns:
        FormValidation.ok(java.lang.String) if the pattern is valid and the string matches the pattern, FormValidation.warning(java.lang.String) if the pattern is valid and the string does not match the pattern, FormValidation.error(java.lang.String) otherwise.
      • getFailureReader

        protected FailureReader getFailureReader​(String testPattern)
        Parameters:
        testPattern - the test pattern for the indication passed to the failure reader
        Returns:
        the failure reader corresponding to this descriptor