Clone the job. Remove the git SCM configuration and build steps. Instead enter a single build step which runs the command: set (I believe that prints environment vars on windows). Then study the difference in the environment of Jenkins job and your own session where things work.
-- Sami Gong <[email protected]> kirjoitti 22.2.2013 kello 2.01: > here is the error message. Very confusion to me. > a. The Jenkins slave is run from Java Web Starter, not a Windows Service. > b. If I login the slave, the git command always work. > c. If I start the slave from server, always fail. Here is the error message. > > Any tips on how to debug/trouble shooting this is very appreciated! This is > driving people crazy... > > > > Started by user Albert Cheng > Building remotely on java-ci-2k12 in workspace > c:\jenkins\workspace\azure-sdk-for-java dev win2k12 > Checkout:azure-sdk-for-java dev win2k12 / > c:\jenkins\workspace\azure-sdk-for-java dev win2k12 - > hudson.remoting.Channel@44c7b1:java-ci-2k12 > Using strategy: Default > Fetching changes from 1 remote Git repository > Fetching upstream changes from origin > ERROR: Problem fetching from origin / origin - could be unavailable. > Continuing anyway > hudson.plugins.git.GitException: Command "C:\Program Files > (x86)\Git\bin\git.exe fetch -t origin +refs/heads/*:refs/remotes/origin/*" > returned status code 128: > stdout: > stderr: Permission denied (publickey). > 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:772) > at > org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:738) > at > org.jenkinsci.plugins.gitclient.CliGitAPIImpl.fetch(CliGitAPIImpl.java:160) > at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797) > at hudson.plugins.git.GitSCM.access$000(GitSCM.java:57) > at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:976) > at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:941) > at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2246) > at hudson.remoting.UserRequest.perform(UserRequest.java:118) > at hudson.remoting.UserRequest.perform(UserRequest.java:48) > at hudson.remoting.Request$2.run(Request.java:326) > at > hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) > at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) > at java.util.concurrent.FutureTask.run(Unknown Source) > -- > 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]. > For more options, visit https://groups.google.com/groups/opt_out. > > -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
