how to define the artifacts specific to branch

I have a bamboo plan with different branches, my build job and the tasks are different for each branch, so i need do define artifacts specific to branch else am unable to publish my artifacts as my artifacts path are different for each branch, can we fix this?