On Friday, April 10, 2020 at 2:27:35 PM UTC-6, swathi mudumbai wrote:
>
> Hi
>
> I am new to Jenkins and Bitbucket. I have a repos on remote bitbucket 
> cloud. I am trying to integrate that with Jenkins.
> I have Jenkins installed on my personal laptop  in my home network. 
> I generated the SSH keys on my local pc (where the Jenkins is installed) 
> cmd prompt  and configured the SSH keys (private in Jenkins) and public in 
> my bitbucket repos.
> Also I installed bitbucket plugin and webhook on Jenkins.
> When I tried to create a new Item (proj) on Jenkins and entered the URL 
> of  my bitbucket repos (SSH URL), it failed  and I get the following error:
> Can anyone please help me to resolve this issue.
>
>
> * A problem occurred while processing the request. Please check our bug 
> tracker to see if a similar problem has already been reported. If it is 
> already reported, please vote and put a comment on it to let us gauge the 
> impact of the problem. If you think this is a new issue, please file a new 
> issue. When you file an issue, make sure to add the entire stack trace, 
> along with the version of Jenkins and relevant plugins. The users list 
> might be also useful in understanding what has happened.*
> *Stack trace*
> *java.lang.RuntimeException: ssh executable not found. The git plugin only 
> supports official git client http://git-scm.com/download/win 
> <http://git-scm.com/download/win>*
>

Command line git uses command line ssh to fetch remote repositories that 
use ssh protocol.  The Jenkins process that is trying to detect the tip of 
the branch on the remote (Bitbucket) repository can't find an executable 
named 'ssh.exe' in the Windows path of the Jenkins process.

That probably means that your installation of command line git is not 
visible to the Jenkins process.  The Jenkins "Manage Jenkins" page includes 
a "System Information" page that lists the environment variables known to 
Jenkins.  Check that list to confirm that command line git and command line 
ssh can be found in the Windows PATH that Jenkins is using.

It might also mean that you've configured command line git or your Windows 
environment in some unexpected manner.  That is less typical, but also 
possible.

Mark Waite

 

> * at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getSSHExecutable(CliGitAPIImpl.java:2299)*
> * at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.createWindowsGitSSH(CliGitAPIImpl.java:2305)*
> * at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1982)*
> * at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1944)*
> * at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1935)*
> * at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getHeadRev(CliGitAPIImpl.java:3295)*
> * at 
> hudson.plugins.git.UserRemoteConfig$DescriptorImpl.doCheckUrl(UserRemoteConfig.java:209)*
> * at java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source)*
> * at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)*
> * at 
> org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)*
> * at 
> org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)*
> * at 
> org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)*
> * at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)*
> * at 
> org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)*
> * at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:535)*
> * at 
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)*
> * at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)*
> *Caused: javax.servlet.ServletException*
>
>
> Thanks
> Swathi
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/772122e6-57f3-4b62-b857-fa7087627fee%40googlegroups.com.

Reply via email to