Forum Discussion

tsmith0422's avatar
tsmith0422
New Contributor
5 years ago

getting the tfs BuildNumber when running the ReadyAPI command line on Octopus

I am needing to get the tfs BuildNumber to insert into a table within my TestCase setup (using a Groovy step).  I am running the Testcase via the command line in my Octopus build.  From reading the documentation on my build the tfs build number is a predefined variable of $(Build.BuildNumber). How do I get access to this variable from the build into my Groovy teststep in my testcase?