I want to have a CheckoutTrunk and a CheckoutBranch build configuration inside a single project.
When the build configuration called CheckOutTrunk runs I want to have a snapshot dependency called Compile which will compile the code build within CheckOutTrunk.
When the build configuration called CheckOutBranch runs I want to use a snapshot dependency called Compile which will compile the code build within CheckOutBranch.
When I am within the Compile Build Configuration I have to supply a checkout rule - Id like to be able to set this via a parameter, but it needs to be the one parameter so that I can either point it to the CheckOutTrunk or the CheckOutBranch code.
Is this possible - can I somehow get the branch which was build and pass this as a parameter to the checkout rule for the Compile build configuration?