Class WebhookListenerBuildConditionsTrait

java.lang.Object
hudson.model.AbstractDescribableImpl<T>
jenkins.scm.api.trait.SCMTrait<jenkins.scm.api.trait.SCMSourceTrait>
jenkins.scm.api.trait.SCMSourceTrait
io.jenkins.plugins.gitlabbranchsource.WebhookListenerBuildConditionsTrait
All Implemented Interfaces:
ExtensionPoint, Describable<jenkins.scm.api.trait.SCMSourceTrait>

public class WebhookListenerBuildConditionsTrait extends jenkins.scm.api.trait.SCMSourceTrait
  • Constructor Details

    • WebhookListenerBuildConditionsTrait

      @DataBoundConstructor public WebhookListenerBuildConditionsTrait()
      Constructor for stapler.
  • Method Details

    • decorateContext

      protected void decorateContext(jenkins.scm.api.trait.SCMSourceContext<?,?> context)
      Overrides:
      decorateContext in class jenkins.scm.api.trait.SCMSourceTrait
    • getAlwaysBuildMROpen

      public boolean getAlwaysBuildMROpen()
      Run build on MR open
      Returns:
      true to fire trigger on MR Open
    • getAlwaysBuildMRReOpen

      public boolean getAlwaysBuildMRReOpen()
      Run build on MR re-open
      Returns:
      true to fire trigger on MR Re-Open
    • getAlwaysIgnoreMRApproval

      public boolean getAlwaysIgnoreMRApproval()
      Run build on MR approval
      Returns:
      false to run build on MR approval
    • getAlwaysIgnoreMRUnApproval

      public boolean getAlwaysIgnoreMRUnApproval()
      Run build on MR un-approval
      Returns:
      false to run build on non-code related MR updates
    • getAlwaysIgnoreMRApproved

      public boolean getAlwaysIgnoreMRApproved()
      Run build on MR approved
      Returns:
      false to run build on MR approved
    • getAlwaysIgnoreMRUnApproved

      public boolean getAlwaysIgnoreMRUnApproved()
      Run build on MR un-approved
      Returns:
      false to run build on non-code related MR updates
    • getAlwaysIgnoreNonCodeRelatedUpdates

      public boolean getAlwaysIgnoreNonCodeRelatedUpdates()
      Run build on MR non-code related updates e.g. MR title update
      Returns:
      false to run build on non-code related MR updates
    • getAlwaysIgnoreMRWorkInProgress

      public boolean getAlwaysIgnoreMRWorkInProgress()
      Do not run build on MR WIP
      Returns:
      false to run build on non-code related MR updates
    • setAlwaysBuildMROpen

      @DataBoundSetter public void setAlwaysBuildMROpen(boolean alwaysBuildMROpen)
      Setter for stapler to set the alwaysBuildMROpen of the WebhookListener
    • setAlwaysBuildMRReOpen

      @DataBoundSetter public void setAlwaysBuildMRReOpen(boolean alwaysBuildMRReOpen)
      Setter for stapler to set the alwaysBuildMRReOpen of the WebhookListener
    • setAlwaysIgnoreMRApproval

      @DataBoundSetter public void setAlwaysIgnoreMRApproval(boolean alwaysIgnoreMRApproval)
      Setter for stapler to set the alwaysIgnoreMRApproval of the WebhookListener
    • setAlwaysIgnoreMRUnApproval

      @DataBoundSetter public void setAlwaysIgnoreMRUnApproval(boolean alwaysIgnoreMRUnApproval)
      Setter for stapler to set the alwaysIgnoreMRUnApproval of the WebhookListener
    • setAlwaysIgnoreMRApproved

      @DataBoundSetter public void setAlwaysIgnoreMRApproved(boolean alwaysIgnoreMRApproved)
      Setter for stapler to set the alwaysIgnoreMRApproved of the WebhookListener
    • setAlwaysIgnoreMRUnApproved

      @DataBoundSetter public void setAlwaysIgnoreMRUnApproved(boolean alwaysIgnoreMRUnApproved)
      Setter for stapler to set the alwaysIgnoreMRUnApproved of the WebhookListener
    • setAlwaysIgnoreNonCodeRelatedUpdates

      @DataBoundSetter public void setAlwaysIgnoreNonCodeRelatedUpdates(boolean alwaysIgnoreNonCodeRelatedUpdates)
      Setter for stapler to set the alwaysIgnoreNonCodeRelatedUpdates of the WebhookListener
    • setAlwaysIgnoreMRWorkInProgress

      @DataBoundSetter public void setAlwaysIgnoreMRWorkInProgress(boolean alwaysIgnoreMRWorkInProgress)
      Setter for stapler to set the alwaysIgnoreMRWorkInProgress of the WebhookListener