Branch specific artifact dependency branch

Given a build configuration with multiple artifact dependencies, what would the best way be to specify the "build branch" of an artifact dependency depending on the branch of the build?

For example, in the event that the build is against the 'master' branch, I need the artifact dependency to use its 'master' branch. However when the build is against, say, 'my_branch', I would like the dependency to use 'its_branch' instead.

I hope this is clear enough, thank you for your help.

Please sign in to leave a comment.