When branches are not allowed in a MR build, log it.
This commit is contained in:
parent
e0d541d53a
commit
fe53a772aa
|
@ -384,7 +384,13 @@ public class GitLabPushTrigger extends Trigger<Job<?, ?>> {
|
|||
|
||||
scheduledJob.scheduleBuild2(projectbuildDelay, action, new CauseAction(cause));
|
||||
} else {
|
||||
LOGGER.log(Level.INFO, "trigger on merge request not set");
|
||||
|
||||
if (triggerOnMergeRequest ) {
|
||||
LOGGER.log(Level.INFO, "trigger on merge request not set");
|
||||
} else if ( this.isBranchAllowed(req.getObjectAttribute().getTargetBranch())) {
|
||||
LOGGER.log(Level.INFO, "branch {0} is not allowed", req.getObjectAttribute().getTargetBranch());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue