Class PluginHashtagsChangedEvent
java.lang.Object
hudson.model.AbstractDescribableImpl<PluginGerritEvent>
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginGerritEvent
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginHashtagsChangedEvent
- All Implemented Interfaces:
Describable<PluginGerritEvent>,Serializable
An event configuration that causes the build to be triggered
when a hashTag changed which matching a configurable RegEx.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe descriptor for PluginHashtagChangedEvent.Nested classes/interfaces inherited from class com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginGerritEvent
PluginGerritEvent.PluginGerritEventDescriptor -
Constructor Summary
ConstructorsConstructorDescriptionEmpty Default constructor for Serializer.PluginHashtagsChangedEvent(String hashtagChanged) Standard dataBoundConstructor for configuration. -
Method Summary
Modifier and TypeMethodDescriptionGet class for watched gerrit event.Get a regular expression to show in jenkins page.booleanshouldTriggerOn(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event) Return if it should trigger build for the specified event.Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
PluginHashtagsChangedEvent
public PluginHashtagsChangedEvent()Empty Default constructor for Serializer. -
PluginHashtagsChangedEvent
Standard dataBoundConstructor for configuration.- Parameters:
hashtagChanged- String contains a regular expression to match changed hasgtag.
-
-
Method Details
-
getHashtagChanged
Get a regular expression to show in jenkins page.- Returns:
- String contains a regular expression to match changed hasgtag.
-
getCorrespondingEventClass
Get class for watched gerrit event.- Specified by:
getCorrespondingEventClassin classPluginGerritEvent- Returns:
- Hashtag changed event class
-
shouldTriggerOn
public boolean shouldTriggerOn(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event) Description copied from class:PluginGerritEventReturn if it should trigger build for the specified event. Default implementation only check if the specified event is an instance of the corresponding event class. Sub class can override to add additional validation.- Overrides:
shouldTriggerOnin classPluginGerritEvent- Parameters:
event- The event to validate.- Returns:
- true if it should trigger on the specified event, otherwise false.
-