Class PluginPatchsetCreatedEvent

    • Constructor Detail

      • PluginPatchsetCreatedEvent

        @DataBoundConstructor
        public PluginPatchsetCreatedEvent()
        Default constructor.
      • PluginPatchsetCreatedEvent

        @Deprecated
        public PluginPatchsetCreatedEvent​(boolean excludeDrafts,
                                          boolean excludeTrivialRebase,
                                          boolean excludeNoCodeChange)
        Deprecated.
        Standard DataBoundConstructor.
        Parameters:
        excludeDrafts - if drafts should be excluded or not.
        excludeTrivialRebase - if trivial rebases should be excluded or not.
        excludeNoCodeChange - if message-only changes should be excluded.
    • Method Detail

      • setExcludeDrafts

        @DataBoundSetter
        public void setExcludeDrafts​(boolean excludeDrafts)
        Setter for excludeDrafts.
        Parameters:
        excludeDrafts - if drafts should be excluded or not.
      • setExcludeTrivialRebase

        @DataBoundSetter
        public void setExcludeTrivialRebase​(boolean excludeTrivialRebase)
        Setter for excludeTrivialRebase.
        Parameters:
        excludeTrivialRebase - if trivial rebases should be excluded or not.
      • setExcludeNoCodeChange

        @DataBoundSetter
        public void setExcludeNoCodeChange​(boolean excludeNoCodeChange)
        Setter for excludeNoCodeChange.
        Parameters:
        excludeNoCodeChange - if message-only changes should be excluded.
      • setExcludePrivateState

        @DataBoundSetter
        public void setExcludePrivateState​(boolean excludePrivateState)
        Setter for excludePrivateState.
        Parameters:
        excludePrivateState - if private state changes should be excluded.
      • setExcludeWipState

        @DataBoundSetter
        public void setExcludeWipState​(boolean excludeWipState)
        Setter for excludeWipState.
        Parameters:
        excludeWipState - if wip state changes should be excluded.
      • setCommitMessageContainsRegEx

        @DataBoundSetter
        public void setCommitMessageContainsRegEx​(String commitMessageContainsRegEx)
        Setter for commitMessageContains.
        Parameters:
        commitMessageContainsRegEx - Trigger if this text is included in the commit message
      • setUploaderNameContainsRegEx

        @DataBoundSetter
        public void setUploaderNameContainsRegEx​(String uploaderNameContainsRegEx)
        Setter for uploaderNameContainsRegEx.
        Parameters:
        uploaderNameContainsRegEx - Trigger if uploader name is validated against this RegEx.
      • isExcludeDrafts

        public boolean isExcludeDrafts()
        Getter for the excludeDrafts field.
        Returns:
        excludeDrafts
      • isExcludeTrivialRebase

        public boolean isExcludeTrivialRebase()
        Getter for the excludeTrivialRebase field.
        Returns:
        excludeTrivialRebase
      • isExcludeNoCodeChange

        public boolean isExcludeNoCodeChange()
        Getter for the excludeNoCodeChange field.
        Returns:
        excludeNoCodeChange
      • isExcludePrivateState

        public boolean isExcludePrivateState()
        Getter for the excludePrivateState field.
        Returns:
        excludePrivateState
      • isExcludeWipState

        public boolean isExcludeWipState()
        Getter for the excludeWipState field.
        Returns:
        excludeWipState
      • getCommitMessageContainsRegEx

        public String getCommitMessageContainsRegEx()
        Getter for commitMessageContains field.
        Returns:
        commitMessageContains
      • getUploaderNameContainsRegEx

        public String getUploaderNameContainsRegEx()
        Getter for uploaderNameContainsRegEx field.
        Returns:
        uploaderNameContainsRegEx
      • shouldTriggerOn

        public boolean shouldTriggerOn​(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event)
        Description copied from class: PluginGerritEvent
        Return 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:
        shouldTriggerOn in class PluginGerritEvent
        Parameters:
        event - The event to validate.
        Returns:
        true if it should trigger on the specified event, otherwise false.