forked from huwang-dematic/gitlab-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMergeRequestTriggerConfig.java
More file actions
32 lines (21 loc) · 927 Bytes
/
Copy pathMergeRequestTriggerConfig.java
File metadata and controls
32 lines (21 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.dabsquared.gitlabjenkins;
import com.dabsquared.gitlabjenkins.trigger.TriggerOpenMergeRequest;
public interface MergeRequestTriggerConfig {
boolean getTriggerOnMergeRequest();
boolean isTriggerOnlyIfNewCommitsPushed();
boolean isTriggerOnAcceptedMergeRequest();
boolean isTriggerOnApprovedMergeRequest();
boolean isTriggerOnClosedMergeRequest();
TriggerOpenMergeRequest getTriggerOpenMergeRequestOnPush();
boolean isSkipWorkInProgressMergeRequest();
String getLabelsThatForcesBuildIfAdded();
boolean getCancelPendingBuildsOnUpdate();
/**
* Whether running builds for the same merge request source branch should be aborted when the
* merge request is updated. Independent of {@link #getCancelPendingBuildsOnUpdate()} — either
* can be enabled on its own.
*/
default boolean getCancelRunningBuildsOnUpdate() {
return false;
}
}