Jenkins CI on selected branches

jenkins
#1

I’m using Jenkins CI from GitLab, but I’d only like to trigger the builds for certain branches.
I see no option to do so.
On the other side, in Jenkins, I’ve limited by branch-name (regex), but this shows up in GitLab as a failed connection.
It would be better if I could avoid triggering the Jenkins vs. rejecting the build of a mis-matched branch.

0 Likes

#2

You can just the only keyword i guess. You can use wildcard on branch name.

0 Likes

#3

Sorry - “only” keyword where? I see no such option on the Jenkins CI doc page:
https://docs.gitlab.com/ee/integration/jenkins.html#help-and-feedback

Thanks,

  • joe w.
0 Likes