I have two jobs, jobA triggers jobB.
I want:
1) any branch of jobA to trigger a build of jobA
2) I want jobA to only trigger the default branch of jobB.

I tried setting the branch for both builds to ** which worked for [1] 
but jobB didn't build the correct branch.

So I tried making the jobs parameterized with a default of ** and then 
jobA would find the default branch of jobB and trigger jobB with the 
default branch as the branch parameter, but upon a push to the repo no 
build occurs.  So I think when it gets the hook from github it doesn't 
check what the $BRANCH parameter defaults to and so $BRANCH matches no 
branches and no build occurs.

I tried using regex but it builds every branch regardless of if the 
change was in that branch or not.

I'm using the github webhook to trigger builds and it works correctly if 
I put the actual branch in.  But I'm trying to keep from having to 
continously change the branch as branches are released because we use a 
different branching strategy than master and feature/release branches.

I want the github webhook to trigger builds of any branch pushed to, but 
I want triggered builds from that to specify a specific branch to build.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to