Status: Closed (View Workflow)
Resolution: Not A Defect
I am using gerrit as my SCM and have generated ssh keys for ca_nss_jenkins user and added same in gerrit and created jenkins credentials for the same with username and private key. Earlier it was working fine but after restart of the Jenkins server I am getting the issue.
I have tried running the same commands in jenkins server directly and it works fine. But, in Jenkins it is showing the below errors.
Failed to connect to repository : Command "git ls-remote -h ssh://ca_nss_jenkins@gerritrepo HEAD" returned status code 128:
stderr: /tmp/ssh7910025167466427456.sh: line 6: ssh: command not found
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Please use chat or the mailing lists for additional help on configuration issues. There are many more people available to assist with those types of issues than are reading bug reports for specific plugins.
As I said earlier it was working fine and post reboot the issue came. I am able to execute ssh directly from the console and PATH variable also seems to be fine. Please suggest any workaround for finding the issue.
Since there was no software change between the "working" and "non-working" states, I'm confident the issue is not related to the software. Thus it is best resolved in other places, not in the bug tracker.
I really don't want to encourage people to use the very few maintainers of the git plugin as primary source for answers on questions. When I spend time answering questions that others could answer, I'm reducing the time I spend on the plugin source code and reducing the amount that others can help.
Please use chat or the mailing lists.
This is an infrastructure issue that is specific to your environment, not something related to the git plugin or the git client plugin.
The message that ssh cannot be found could be an indication that: