Gitlab-jenkins webhook triggers build with wrong branch

Gitlab-jenkins webhook triggers build with wrong branch

As of now, it is building the wrong branch only at the time of testing web-hook from gitlab,

On a regular change, the desired branch is build as specified in Jenkins and in gitlab, be sure to use the branch filter in gitlab if doing like this,

It is evident that when testing the web-hook, gitlab sends triggers for all branches that got changes, what happens in Jenkins I assume is it builds the default branch when receiving such triggers,

Gitlab-jenkins webhook triggers build with wrong branch

Leave a Reply

Your email address will not be published. Required fields are marked *