jenkinsci / jenkinsci/gitlab-branch-source-plugin

GitLab Merge Request pipeline runs upon a certain number of commits

Open
#137 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
134
Forks
113
PR merge metrics
No merged PRs in 30d

Description

### Feature Request

Hi,

I have been working the jenkins gitlab source plugin for running multi branch CI pipelines for merge requests. Currently i'm using this configuration for the pipeline:

![merge_request_gitlab_jenkins](https://user-images.githubusercontent.com/48587119/115673741-96651580-a36a-11eb-9b69-b9493b45bc94.PNG)

The pipeline builds for the **current merge request revision** as you can see. I want it to run with the option: **Merging the merge request with the current target branch revision**.
The problem with the latter is that, pipeline builds automatically for every single commit to the target branch of the merge request.

Can a feature be added in such a way that this automatic build for pipeline happens only when there is a specific number of commits to target branch?

If there is an option to specify **the number of commits to target branch** as **100**, then the pipeline for merge request should only **build when it is a 100 commits behind the target branch**.

Thank you.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.