I have created a VSO build using the new Team build system which uses TFS as the Repository. I would like to introduce a variable into the Mappings -> Map value but when I do I
I also have this issue, i'd like to set the branch being built in order to have a single build that I can link to a single release (in vso), since the vso release system does not have global environment definitions.
Anyway, this used to be possible but they removed this capability without replacing it with something else, kinda annoying.
I worked around it by adding mappings to both my dev and main branch to different local folders and then using a variable to differentiate between them in the actual build steps. As long as you don't need to map a ton of branches this works, even though its a bit cumbersome.
Mappings on the Repository page are used to specify source control folder which contains projects that need to be built in the build definition. You can set it via clicking the Ellipsis (...) button, however, you can't include variables in the mapping path.