I am executing a build which merges the changes from one branch into another(through the 'merge before build' option).
Now, I need the $GIT_BRANCH variable in my execute shell, and it gives me the second branch(into which my changes have been merged) as opposed to the earlier branch which I started out with.
Is there some way I can get the previous branch as an environment variable in my execute shell?
Thanks a lot.