Hello Mark, Thank you for you prompt response, I have already tested this scenario also removed all the jeys from windows slave and only use the jenkins credentials still does not work, I generated new keys and added the private key in the jenkins credentials and public key in Gitlab still same issue. Could you think of anything else.
Thanks, Venkat On Wed, Apr 10, 2019 at 11:43 AM Mark Waite <[email protected]> wrote: > Compare the contents of the private key definition in the Jenkins > credentials UI with the private key that is being used on the Windows > agent. If the key is incorrectly defined in the Jenkins credentials, that > might cause the problem you're seeing. > > Move (or hide) all other private keys on the Windows agent to be sure that > your successful interactive test was not using a different private key than > the private key used in the Jenkins credential. > > On Wed, Apr 10, 2019 at 3:47 AM <[email protected]> wrote: > >> Hello Users, >> >> I have Jenkins with master slave configuration, I have linux slaves and >> windows slaves >> I am unable to use the Gitlab SSH credentials on Windows Slave >> Fails on scm checkout, The scm checkout works fine for the linux slaves >> To test the id_rsa key, I put the id_rsa in .ssh of home directory and >> do git clone, it works fine, but somehow from git credentials it seem to >> have a problem >> Is there a workaround for this issue any help is very much appreciated >> >> using credential 2090ffbd-ddc3-45a9-adfb-e9c0e5ca4c75 >> Wiping out workspace first. >> Cloning the remote Git repository >> Cloning repository ssh://[email protected]/xx.git >> > git init >> E:\workspace\Main_Build_master-HAJ7MPMVYIUEWROZ6RHLXJYVT3JUCE7ZDT7PHAOWUKJQYMDSW5KQ >> # timeout=10 >> Fetching upstream changes from ssh://[email protected]/xx.git >> > git --version # timeout=10 >> using GIT_SSH to set credentials Jenkins private ssh key >> > git fetch --tags --progress ssh://[email protected]/xx.git >> +refs/heads/*:refs/remotes/origin/* # timeout=7 >> ERROR: Error cloning remote repo 'origin' >> hudson.plugins.git.GitException: Command "git fetch --tags --progress >> ssh://[email protected]/xx.git +refs/heads/*:refs/remotes/origin/*" >> returned status code 128: >> stdout: >> stderr: Load key >> "E:\\workspace\\Main_Build_master-HAJ7MPMVYIUEWROZ6RHLXJYVT3JUCE7ZDT7PHAOWUKJQYMDSW5KQ@tmp\\ssh8872120221702825356.key": >> invalid format >> Permission denied, please try again. >> Permission denied, please try [email protected]/xx.git: Permission >> denied (publickey,gssapi-keyex,gssapi-with-mic,password). >> fatal: Could not read from remote repository. >> >> Please make sure you have the correct access rights >> and the repository exists. >> >> at >> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2002) >> at >> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1721) >> at >> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:72) >> at >> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:405) >> at >> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:614) >> at >> org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153) >> at >> org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146) >> at hudson.remoting.UserRequest.perform(UserRequest.java:212) >> at hudson.remoting.UserRequest.perform(UserRequest.java:54) >> at hudson.remoting.Request$2.run(Request.java:369) >> at >> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) >> at java.util.concurrent.FutureTask.run(Unknown Source) >> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) >> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) >> at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93) >> at java.lang.Thread.run(Unknown Source) >> Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to >> JNLP4-connect connection from 10.171.1.123/10.171.1.123:1035 >> at >> hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741) >> at >> hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357) >> at hudson.remoting.Channel.call(Channel.java:955) >> at >> org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146) >> at sun.reflect.GeneratedMethodAccessor280.invoke(Unknown Source) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> at java.lang.reflect.Method.invoke(Method.java:498) >> at >> org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132) >> at com.sun.proxy.$Proxy94.execute(Unknown Source) >> at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1152) >> at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1192) >> at >> org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:113) >> at >> org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:85) >> at >> org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:75) >> at >> org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47) >> at hudson.security.ACL.impersonate(ACL.java:290) >> at >> org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44) >> at >> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) >> at java.util.concurrent.FutureTask.run(FutureTask.java:266) >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) >> at java.lang.Thread.run(Thread.java:748) >> >> >> >> >> >> >> >> >> >> -- >> 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 [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-users/8c3b499c-73fa-42f6-bd13-5fdac28ef320%40googlegroups.com >> <https://groups.google.com/d/msgid/jenkinsci-users/8c3b499c-73fa-42f6-bd13-5fdac28ef320%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > -- > Thanks! > Mark Waite > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtEkiszK3qMir__%2BUC_Z8sZu_tAX0aO4eewsKXVP8LdjDA%40mail.gmail.com > <https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtEkiszK3qMir__%2BUC_Z8sZu_tAX0aO4eewsKXVP8LdjDA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CA%2Bp6ecNDfmDoLT%3DWjA%3Dge2yA%3DbkUMg6T8HVsg1SxP4FSHCcsuw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
