JENKINS-22009 Git Polling Keeps Detecting Changes When Variables in refspec

setup correct environment for polling + test case