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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Our descriptor.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
decorateContext
(jenkins.scm.api.trait.SCMSourceContext<?, ?> context) boolean
Run build on MR openboolean
Run build on MR re-openboolean
Run build on MR approvalboolean
Run build on MR approvedboolean
Run build on MR un-approvalboolean
Run build on MR un-approvedboolean
Do not run build on MR WIPboolean
Run build on MR non-code related updates e.g.void
setAlwaysBuildMROpen
(boolean alwaysBuildMROpen) Setter for stapler to set the alwaysBuildMROpen of the WebhookListenervoid
setAlwaysBuildMRReOpen
(boolean alwaysBuildMRReOpen) Setter for stapler to set the alwaysBuildMRReOpen of the WebhookListenervoid
setAlwaysIgnoreMRApproval
(boolean alwaysIgnoreMRApproval) Setter for stapler to set the alwaysIgnoreMRApproval of the WebhookListenervoid
setAlwaysIgnoreMRApproved
(boolean alwaysIgnoreMRApproved) Setter for stapler to set the alwaysIgnoreMRApproved of the WebhookListenervoid
setAlwaysIgnoreMRUnApproval
(boolean alwaysIgnoreMRUnApproval) Setter for stapler to set the alwaysIgnoreMRUnApproval of the WebhookListenervoid
setAlwaysIgnoreMRUnApproved
(boolean alwaysIgnoreMRUnApproved) Setter for stapler to set the alwaysIgnoreMRUnApproved of the WebhookListenervoid
setAlwaysIgnoreMRWorkInProgress
(boolean alwaysIgnoreMRWorkInProgress) Setter for stapler to set the alwaysIgnoreMRWorkInProgress of the WebhookListenervoid
setAlwaysIgnoreNonCodeRelatedUpdates
(boolean alwaysIgnoreNonCodeRelatedUpdates) Setter for stapler to set the alwaysIgnoreNonCodeRelatedUpdates of the WebhookListenerMethods inherited from class jenkins.scm.api.trait.SCMSourceTrait
_for, _for, all, applyToBuilder, applyToContext, applyToObserver, decorateBuilder, decorateObserver, getDescriptor, includeCategory, isCategoryEnabled
Methods inherited from class jenkins.scm.api.trait.SCMTrait
asSetList, asSetList, find
-
Constructor Details
-
WebhookListenerBuildConditionsTrait
@DataBoundConstructor public WebhookListenerBuildConditionsTrait()Constructor for stapler.
-
-
Method Details
-
decorateContext
protected void decorateContext(jenkins.scm.api.trait.SCMSourceContext<?, ?> context) - Overrides:
decorateContext
in classjenkins.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
-