tsmith0422
5 years agoNew Contributor
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 d...
- 5 years ago
Hi tsmith0422,
If your build agent sets environment variables in the system as Jenkins does, you should be able to access those variables from a Groovy script within ReadyAPI the same way as it's described here: https://smartbear-cc.force.com/portal/KbArticleViewer?name=How-to-get-Jenkins-environment-variables-in-ReadyAPI-when-ReadyAPI-test-is-being-ran-with-Jenkins&sp=readyapi