added creation of pipelineTriggerHandler in onPost(PipelineHook) because missing of it was causing NPE during processing pipeline hook

This commit is contained in:
Mateusz Jaje 2018-05-18 12:01:03 +02:00
parent 4469baefa4
commit 6b036af844
1 changed files with 3 additions and 0 deletions

View File

@ -432,6 +432,9 @@ public class GitLabPushTrigger extends Trigger<Job<?, ?>> {
// executes when the Trigger receives a pipeline event
public void onPost(final PipelineHook hook) {
if (pipelineTriggerHandler == null) {
initializeTriggerHandler();
}
pipelineTriggerHandler.handle(job, hook, ciSkip, branchFilter, mergeRequestLabelFilter);
}