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
Nested Classes Modifier and Type Class Description static class
WebhookListenerBuildConditionsTrait.DescriptorImpl
Our descriptor.-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description WebhookListenerBuildConditionsTrait()
Constructor for stapler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
decorateContext(jenkins.scm.api.trait.SCMSourceContext<?,?> context)
boolean
getAlwaysBuildMROpen()
Run build on MR openboolean
getAlwaysBuildMRReOpen()
Run build on MR re-openboolean
getAlwaysIgnoreMRApproval()
Run build on MR approvalboolean
getAlwaysIgnoreMRApproved()
Run build on MR approvedboolean
getAlwaysIgnoreMRUnApproval()
Run build on MR un-approvalboolean
getAlwaysIgnoreMRUnApproved()
Run build on MR un-approvedboolean
getAlwaysIgnoreMRWorkInProgress()
Do not run build on MR WIPboolean
getAlwaysIgnoreNonCodeRelatedUpdates()
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 WebhookListener
-
-
-
Method Detail
-
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
-
-