Forum Discussion

heisenbug64's avatar
heisenbug64
Regular Visitor
12 months ago

How to get current branch name

I have a Readyapi composite project in Git. I switch branches using the Readyapi integrated Git client. Is there any possibility to get to current branch name or even switch to another branch using a groovy script?

Use case: To separate testruns and their results in our reporting I want to group the results by the current branch selected for a given test run.