Hmmm that's an interesting case.... Though this should cease to be an issue
with the git 2.0 refactoring as it is credentials aware (that does give
other issues with non-private key auth and the non-jgit impl)

You could try git 2.0-beta-whatever from the experimental update center and
see if that fixes your issue

On Tuesday, 8 October 2013, Maciej Sawicki wrote:

> On Tue, Oct 8, 2013 at 12:21 PM, Stephen Connolly
> <[email protected] <javascript:;>> wrote:
> > Suffice it to say that the key reported by ssh-add -l is the one
> injected by
> > the ssh-agent that is held only by the credentials plugin as a
> direct-entry
> > key (so it is not in a file or on a keychain anywhere)
> >
> > So this should work, out of the box, with OSX slaves unless you have
> mucked
> > up your slave's shell environment or something
>
> Thank you very much Stephen!
> It works for me. On one slave - with OS X 10.7 - it worked out of the
> box after plugin update. On second one I had to updated java to
> 1.7.0_40 and remove "/opt/boxen/bin/java" symlink. Using boxen on
> slave wasn't best idea. I'm not sure which action exactly helped but
> before doing it I have "libc.dylib image not found" error.
>
> I have 2nd problem: We use git. In job config I see following error:
>
> Failed to connect to repository : Command "git ls-remote -h
> [email protected]:someOrganization/iOS.git HEAD" returned status code
> 128:
> stdout:
> stderr: ERROR: Repository not found.
> fatal: The remote end hung up unexpectedly
>
> I believe this is is because jenkins master tries to checkout
> repository during configuration and ssh-agent plugin is not used in
> this phase.
> it's not problem it self. Manually triggered build works perfectly.
>
> The problem is that probably the same mechanism is used for git hooks.
> I.e. when following url like this:
>
> https://mycompany.pl/jenkins/git/[email protected]:someOrganization/iOS.git
> is opened Jenkins master schedule job poling. It doesn't start job
> unless it find changes. Unfortunately while using ssh-agent plugin I
> have following error in polling log:
>
> Git Polling Log
>
> Started on Oct 8, 2013 8:17:11 PM
> Polling SCM changes on orwell
> Using strategy: Default
> [poll] Last Built Revision: Revision somerevision (origin/master)
> Fetching changes from the remote Git repositories
> Fetching upstream changes from origin
> ERROR: Problem fetching from origin / origin - could be unavailable.
> Continuing anyway
> hudson.plugins.git.GitException: Command "git fetch -t origin
> +refs/heads/*:refs/remotes/origin/*" returned status code 128:
> stdout:
> stderr: ERROR: Repository not found.
> 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:880)
> at
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:858)
> at
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.fetch(CliGitAPIImpl.java:159)
> at hudson.plugins.git.GitAPI.fetch(GitAPI.java:227)
> at hudson.plugins.git.GitAPI.fetch(GitAPI.java:231)
> at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:791)
> at hudson.plugins.git.GitSCM.access$000(GitSCM.java:58)
> at hudson.plugins.git.GitSCM$1.invoke(GitSCM.java:721)
> at hudson.plugins.git.GitSCM$1.invoke(GitSCM.java:704)
> at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2444)
> 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.run(FutureTask.java:262)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:724)
> Polling for changes in
> Done. Took 1.6 sec
> No changes
>
> I know fixing this will probably require some time, but I will really
> appreciate it and I'm willing to help you as much as I can.
>
> best regards,
> Maciek Sawicki
>
> --
> 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] <javascript:;>.
> For more options, visit https://groups.google.com/groups/opt_out.
>


-- 
Sent from my phone

-- 
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.

Reply via email to