[JENKINS-24786] Environment variables are not expanded in git publisher

Fix: Git publisher fails if remote repository configuration contains
environment variables