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 Classes Modifier and Type Class Description static class
BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId
An 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 Constructor Description BuildLogIndicationDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormValidation
doMatchText(String testPattern, String testText, boolean textSourceIsUrl)
Tests if a text matches a pattern.String
getDisplayName()
protected FailureReader
getFailureReader(String testPattern)
-
Methods inherited from class com.sonyericsson.jenkins.plugins.bfa.model.indication.Indication.IndicationDescriptor
checkPattern, doCheckPattern, getAll
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in 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
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
-
-