Fix bug with http: in URL, work without username/password

Fix bug with http: in URL, work without username/password if supported by the jenkins instance.