Hi Team,
I have configured two (same) repositories in a bamboo plan with different branches.
My Bamboo repository names are below:
1: Repo-Name_testDevelopBranch@1
2: Repo-Name_testDevelopBranch@2
I selected both repositories in the Bitbucket Server repository trigger, now I wanted to get the repo name(or branch name) based on the bitbucket repo trigger.
Eg: if any change occurs in testDevelopBranch@1 so my script should print Repo-Name_testDevelopBranch@1
Please let me know if there is any inbuild trigger-based variable in bamboo that will return the repo name(or branch name ) based on change on the respected repo, or if is there any other way to achieve it.