Strip .git from repo url

If we don't, Jenkins will think it's an incorrect parameter (because it doesn't
match Jenkins's syntax of ssh aliases).