jenkinsci / jenkinsci/gitlab-plugin

Filter By Branch RegEx Not Working

Open
#1,048 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.4k
Forks
615
Avg merge
4h 32m
Merged PRs (30d)
10

Description

### Before submitting an issue I have first:

- [x] read the documentation on the [homepage](https://github.com/jenkinsci/gitlab-plugin)
- [x] searched for similar already existing issue
- [x] confirmed that my GitLab webhook is using the http://JENKINS_URL/project endpoint and not the http://JENKINS_URL/job endpoint

*(if you have performed all the above, remove the paragraph and continue describing the issue with template below)*

## Issue

Below you will see screenshots of my setup where I am trying to build only if a regular expression filter matches the branch. Please have a look and help me identify where it is that I might have the wrong regular expression or the wrong information filled in.

What I am looking for is branches to match `12345-procurement-**` or `procurement-**`.

![procurement-git-repo-settings](https://user-images.githubusercontent.com/46726325/79766956-acbf3800-82f6-11ea-8990-119511f073fa.png)

![procurement-pr-trigger-1](https://user-images.githubusercontent.com/46726325/79766966-b183ec00-82f6-11ea-9801-125b91de6fe1.png)

![procurement-pr-trigger-2](https://user-images.githubusercontent.com/46726325/79766970-b34daf80-82f6-11ea-8a83-0fe082208f88.png)

You will notice on the last line that the merge commit is not the one that is for the branch that has procurement is the name of the branch.

![procurement-pr-trigger-3](https://user-images.githubusercontent.com/46726325/79766983-b779cd00-82f6-11ea-8dc3-2e010647cb12.png)

### Context
- **Gitlab plugin version**: 1.5.13
- **Gitlab version**: Gitlab Enterprise
- **Jenkins version**: 2.222.1
- **Job type**: Freestyle

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.