Configure Job A to trigger Job B twice, with differing parameters. Only the first instance of Job B will be triggered.
Job A has two triggers:
Job B, predefined parameter BRANCH=master
Job B, predefined parameter BRANCH=testbranch
When Job A finishes building, it will trigger Job B with BRANCH=master, but it will not trigger it a second time with BRANCH=testbranch, as required.