Hi All,

Git plugin frustrating...

Environment: Windows 2003 SP2
Jenkins 1.451 (running as a service under an administrative user, not a
system account...i.e me)

- Public key successfully uploaded to bitbucket
- Public and private key copied to directories:
1. C:\documents and settings\<admin user>\.ssh ; and
2. C:\Program Files\Git\.ssh

- Trying to follow instructions here:
https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin

- Private key loaded into Pageant too.

- When private key loaded into Pageant I CAN successfully run git clone
[email protected]:apgray/repository.git

- Running ssh -T [email protected] produces the following output:
The authenticity of host 'bitbucket.org (207.223.240.181)' can't be
established.
RSA key fingerprint is 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'bitbucket.org,207.223.240.181' (RSA) to the
list of known hosts.
Permission denied (publickey).

- known_hosts file is created which I copy to both the above directories so
it is sitting with the public and private key.

- GIT_SSH and Path environment variable are set as directed

- Running plink bitbucket.org asks:
login as:

If I hit CTRL-C plink just exits and returns to the prompt
If I enter apgray and hit Enter I get:
FATAL ERROR: Disconnected: No supported authentication methods available
(server sent: publickey)

The above steps do not appear to have worked properly

If I plow on in the vain hope that something worked and set up Jenkins to
checkout from bitbucket....

Repository URL: [email protected]:apgray/repository.git
Name: leave blank
Refspec: leave blank
Branch Specifier: origin/master

If I attempt a build this is what I get:

Started by user Andrew Gray <http://www.jenkinslocal.com.au:8080/user/andrewg>
Building on master in workspace D:\JenkinsHome\jobs\repository\workspace
Checkout:workspace / D:\JenkinsHome\jobs\repository\workspace -
hudson.remoting.LocalChannel@188665b
Using strategy: Default
Checkout:workspace / D:\JenkinsHome\jobs\repository\workspace -
hudson.remoting.LocalChannel@188665b
Cloning the remote Git repository
Cloning repository origin
ERROR: Error cloning remote repo 'origin' : Could not clone
https://[email protected]/apgray/repository.githudson.plugins.git.GitException
<http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
Could not clone https://[email protected]/apgray/repository.git
        at hudson.plugins.git.GitAPI.clone(GitAPI.java:245)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitAPI.clone&entity=method>
        at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1029)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM$2.invoke&entity=method>
        at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:970)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM$2.invoke&entity=method>
        at hudson.FilePath.act(FilePath.java:788)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.act&entity=method>
        at hudson.FilePath.act(FilePath.java:770)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.act&entity=method>
        at hudson.plugins.git.GitSCM.checkout(GitSCM.java:970)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.checkout&entity=method>
        at hudson.model.AbstractProject.checkout(AbstractProject.java:1195)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractProject.checkout&entity=method>
        at 
hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:576)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractRunner.checkout&entity=method>
        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:465)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractRunner.run&entity=method>
        at hudson.model.Run.run(Run.java:1409)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.run&entity=method>
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.run&entity=method>
        at hudson.model.ResourceController.execute(ResourceController.java:88)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method>
        at hudson.model.Executor.run(Executor.java:238)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method>
Caused by: hudson.plugins.git.GitException
<http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
Error performing command: C:\Program Files\Git\bin\git.exe clone
--progress -o origin
https://[email protected]/apgray/repository.git
D:\JenkinsHome\jobs\respository\workspace
null
        at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:776)
        at hudson.plugins.git.GitAPI.access$000(GitAPI.java:38)
        at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:241)
        at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:221)
        at hudson.FilePath.act(FilePath.java:788)
        at hudson.FilePath.act(FilePath.java:770)
        at hudson.plugins.git.GitAPI.clone(GitAPI.java:221)
        ... 12 more
Caused by: java.lang.InterruptedException
        at java.lang.ProcessImpl.waitFor(Native Method)
        at hudson.Proc$LocalProc.join(Proc.java:319)
        at hudson.Launcher$ProcStarter.join(Launcher.java:345)
        at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:765)
        ... 18 more
Trying next repository
ERROR: Could not clone repositoryFATAL
<http://stacktrace.jenkins-ci.org/search?query=FATAL>: Could not
clonehudson.plugins.git.GitException
<http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
Could not clone
        at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1041)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM$2.invoke&entity=method>
        at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:970)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM$2.invoke&entity=method>
        at hudson.FilePath.act(FilePath.java:788)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.act&entity=method>
        at hudson.FilePath.act(FilePath.java:770)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.act&entity=method>
        at hudson.plugins.git.GitSCM.checkout(GitSCM.java:970)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.checkout&entity=method>
        at hudson.model.AbstractProject.checkout(AbstractProject.java:1195)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractProject.checkout&entity=method>
        at 
hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:576)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractRunner.checkout&entity=method>
        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:465)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractRunner.run&entity=method>
        at hudson.model.Run.run(Run.java:1409)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.run&entity=method>
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.run&entity=method>
        at hudson.model.ResourceController.execute(ResourceController.java:88)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method>
        at hudson.model.Executor.run(Executor.java:238)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method>


*WT?*

What am I missing?  Has anyone got Jenkins running on windows as a service
to checkout from a remote git repository?

It appears the instructions on the Git Plugin WIKI are either incomplete or
incorrect.

Regards,

Andrew

Reply via email to