Get TFS branch into a variable

Hello,

I would like to have the TFS branch of the running build into a variable in finalbuilder.
Is there a way to do this?

Thanks,
Jan-Paul

Hi Jan-Paul,

Yes. You can use the object expression $Source.RepoName.Branch$ to get the branch for a particular build repository in Continua CI.  

To pass this to FinalBuilder, add “FBVariableName = $Source.TFSTest.Branch$” to the Variables input box for the FinalBuilder action in Continua CI. Note that FBVariableName refers to the name of a variable defined in your FinalBuilder project.


Hi Dave,

That did the trick Jan-Paul