refactor: extract implict upstream branch
update for Jenkins Git 2.0 plugin

In the Git 2.0 Jenkins plugin GIT_BRANCH changed from being the local
branch name to being the remote branch name.