Remove unnecessary code
Also check for the proper remote URL
Merge pull request #11817 from s0undt3ch/develop

jenkins.py improvements