I am using RedHat linux
Failed to connect to repository : Error performing command: git
ls-remote -h git clone
For Jenkins 1.5 or greater( till 1.6)
The error you are getting because in the global configuration of Jenkins, the git path is not correct/or not inserted.
That's why Jenkins is unable to run the git command.
Please go to
Manage Jenkins-> Configure System Settings. Check for git section and add correct path.
Its already seems that you have removed the Git Clone from the URL provided by Bitbucket.
For Jenkins 2.0 or above
You can find this setting under Global tool configuration.