Class MergeRequestHookTriggerHandlerFactory.Config
java.lang.Object
com.dabsquared.gitlabjenkins.trigger.handler.merge.MergeRequestHookTriggerHandlerFactory.Config
- All Implemented Interfaces:
MergeRequestTriggerConfig
- Enclosing class:
- MergeRequestHookTriggerHandlerFactory
public static class MergeRequestHookTriggerHandlerFactory.Config
extends Object
implements MergeRequestTriggerConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
setCancelPendingBuildsOnUpdate
(boolean cancelPendingBuildsOnUpdate) setLabelsThatForcesBuildIfAdded
(String labelsThatForcesBuildIfAdded) setSkipWorkInProgressMergeRequest
(boolean skipWorkInProgressMergeRequest) setTriggerOnAcceptedMergeRequest
(boolean triggerOnAcceptedMergeRequest) setTriggerOnApprovedMergeRequest
(boolean triggerOnApprovedMergeRequest) setTriggerOnClosedMergeRequest
(boolean triggerOnClosedMergeRequest) setTriggerOnlyIfNewCommitsPushed
(boolean triggerOnlyIfNewCommitsPushed) setTriggerOnMergeRequest
(boolean triggerOnMergeRequest) setTriggerOpenMergeRequest
(TriggerOpenMergeRequest triggerOpenMergeRequest)
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
getTriggerOnMergeRequest
public boolean getTriggerOnMergeRequest()- Specified by:
getTriggerOnMergeRequest
in interfaceMergeRequestTriggerConfig
-
isTriggerOnlyIfNewCommitsPushed
public boolean isTriggerOnlyIfNewCommitsPushed()- Specified by:
isTriggerOnlyIfNewCommitsPushed
in interfaceMergeRequestTriggerConfig
-
isTriggerOnAcceptedMergeRequest
public boolean isTriggerOnAcceptedMergeRequest()- Specified by:
isTriggerOnAcceptedMergeRequest
in interfaceMergeRequestTriggerConfig
-
isTriggerOnApprovedMergeRequest
public boolean isTriggerOnApprovedMergeRequest()- Specified by:
isTriggerOnApprovedMergeRequest
in interfaceMergeRequestTriggerConfig
-
isTriggerOnClosedMergeRequest
public boolean isTriggerOnClosedMergeRequest()- Specified by:
isTriggerOnClosedMergeRequest
in interfaceMergeRequestTriggerConfig
-
getTriggerOpenMergeRequestOnPush
- Specified by:
getTriggerOpenMergeRequestOnPush
in interfaceMergeRequestTriggerConfig
-
isSkipWorkInProgressMergeRequest
public boolean isSkipWorkInProgressMergeRequest()- Specified by:
isSkipWorkInProgressMergeRequest
in interfaceMergeRequestTriggerConfig
-
getLabelsThatForcesBuildIfAdded
- Specified by:
getLabelsThatForcesBuildIfAdded
in interfaceMergeRequestTriggerConfig
-
getCancelPendingBuildsOnUpdate
public boolean getCancelPendingBuildsOnUpdate()- Specified by:
getCancelPendingBuildsOnUpdate
in interfaceMergeRequestTriggerConfig
-
setTriggerOnMergeRequest
public MergeRequestHookTriggerHandlerFactory.Config setTriggerOnMergeRequest(boolean triggerOnMergeRequest) -
setTriggerOnlyIfNewCommitsPushed
public MergeRequestHookTriggerHandlerFactory.Config setTriggerOnlyIfNewCommitsPushed(boolean triggerOnlyIfNewCommitsPushed) -
setTriggerOnAcceptedMergeRequest
public MergeRequestHookTriggerHandlerFactory.Config setTriggerOnAcceptedMergeRequest(boolean triggerOnAcceptedMergeRequest) -
setTriggerOnClosedMergeRequest
public MergeRequestHookTriggerHandlerFactory.Config setTriggerOnClosedMergeRequest(boolean triggerOnClosedMergeRequest) -
setTriggerOpenMergeRequest
public MergeRequestHookTriggerHandlerFactory.Config setTriggerOpenMergeRequest(TriggerOpenMergeRequest triggerOpenMergeRequest) -
setSkipWorkInProgressMergeRequest
public MergeRequestHookTriggerHandlerFactory.Config setSkipWorkInProgressMergeRequest(boolean skipWorkInProgressMergeRequest) -
setLabelsThatForcesBuildIfAdded
public MergeRequestHookTriggerHandlerFactory.Config setLabelsThatForcesBuildIfAdded(String labelsThatForcesBuildIfAdded) -
setTriggerOnApprovedMergeRequest
public MergeRequestHookTriggerHandlerFactory.Config setTriggerOnApprovedMergeRequest(boolean triggerOnApprovedMergeRequest) -
setCancelPendingBuildsOnUpdate
public MergeRequestHookTriggerHandlerFactory.Config setCancelPendingBuildsOnUpdate(boolean cancelPendingBuildsOnUpdate) -
build
-