I have a GitBucket(not Bitbucket!) repository which I've connected to Jenkins with a Webhook.
Whenever I make a pull request, I would like the feature branch to be built, then merged into master
.
The problem is that only the master
branch is built.
In Jenkins under Source Code Management -> Git -> Branches to build -> Branch Specifier
, I have two things: .*/feature/.*
and .*/master
.
My refspec
is +refs/pull/*:refs/remotes/origin/pr/*
This should build all branches, but still, only master
is built twice. If I try **
, then different commits from master
are built, but not from other branches.
What am I doing wrong?