jenkinsci / jenkinsci/gitlab-plugin

Webhook overrides branch specifier

Open
#945 0 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

Gitlab plugin version: 1.5.12
Gitlab version: 12.0.3-ee
Jenkins version: 2.176
Job type: Freestyle

![branch specifier](https://user-images.githubusercontent.com/10845832/61129650-81810000-a4bd-11e9-96d0-b987efe7e9db.PNG)
[gitlab plugin log.txt](https://github.com/jenkinsci/gitlab-plugin/files/3386476/gitlab.plugin.log.txt)
[job log.txt](https://github.com/jenkinsci/gitlab-plugin/files/3386477/job.log.txt)

Before gitlab and or gitlab plugin update I had Jenkins job that was triggered by gitlab webhook
and always builded branch that is specified in "Branch Specifier" independently to which branch I pushed. But after update, webhook triggers job and overrides "Branch Specifier" settings with branch name to which I pushed. I need to trigger job and build only master branch independently of branch to which was pushed.

Is there any solution for that ?

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.