Merge pull request #731 from mreichel/Bug723

#723 "Build on successful pipeline events" setting will not stay set
This commit is contained in:
Owen Mehegan 2018-03-26 10:33:01 +11:00 committed by GitHub
commit 84e808632c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -383,6 +383,11 @@ public class GitLabPushTrigger extends Trigger<Job<?, ?>> {
this.acceptMergeRequestOnSuccess = acceptMergeRequestOnSuccess;
}
@DataBoundSetter
public void setTriggerOnPipelineEvent(boolean triggerOnPipelineEvent) {
this.triggerOnPipelineEvent = triggerOnPipelineEvent;
}
// executes when the Trigger receives a push request
public void onPost(final PushHook hook) {
if (branchFilter == null) {