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
- Direct Known Subclasses:
MultilineBuildLogIndication.MultilineBuildLogIndicationDescriptor
- Enclosing class:
- BuildLogIndication
@Extension
public static class BuildLogIndication.BuildLogIndicationDescriptor
extends Indication.IndicationDescriptor
The descriptor.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAn identifier for a non-numeric build for a given project, like "last build" and "last failed build".Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoMatchText(String testPattern, String testText, boolean textSourceIsUrl) Tests if a text matches a pattern.protected FailureReadergetFailureReader(String testPattern) Methods inherited from class com.sonyericsson.jenkins.plugins.bfa.model.indication.Indication.IndicationDescriptor
checkPattern, doCheckPattern, getAllMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
BuildLogIndicationDescriptor
public BuildLogIndicationDescriptor()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<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
- Parameters:
testPattern- the test pattern for the indication passed to the failure reader- Returns:
- the failure reader corresponding to this descriptor
-