Class BuildLogIndication.BuildLogIndicationDescriptor

java.lang.Object
hudson.model.Descriptor<Indication>
com.sonyericsson.jenkins.plugins.bfa.model.indication.Indication.IndicationDescriptor
com.sonyericsson.jenkins.plugins.bfa.model.indication.BuildLogIndication.BuildLogIndicationDescriptor
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Direct Known Subclasses:
MultilineBuildLogIndication.MultilineBuildLogIndicationDescriptor
Enclosing class:
BuildLogIndication

@Extension public static class BuildLogIndication.BuildLogIndicationDescriptor extends Indication.IndicationDescriptor
The descriptor.
  • Constructor Details

    • BuildLogIndicationDescriptor

      public BuildLogIndicationDescriptor()
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<Indication>
    • 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