I suspect you'll move further and faster if you adapt your process to
accept changes made to the known_hosts file, rather than attempting to
change a plugin to adapt to your desire for minimal changes to the
known_hosts file.

I don't find changes to the known_hosts file in the git-client-plugin
(which performs core git operations) or in the git-plugin (which provides
the high level workflow related operations).  Alternately, they may happen
as a result of calls from the git-client-plugin to command line git.

Which ever of those plugins it is in, they are used by many thousands of
Jenkins installations.  I suspect the maintainers of those plugins will be
hesitant to worry about an optimization of changes to known_hosts compared
to the risk of breaking use cases for the many other users of those plugins.

Thanks,
Mark Waite

https://github.com/jenkinsci/git-client-plugin/blob/master/src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java




On Wed, Jul 30, 2014 at 10:39 AM, <ed.678...@gmail.com> wrote:

> When I have a job configured using the git plugin (haven't tried this with
> something else) I put the repository URL based on the hostname, e.g.
> "me@host1.machine:repo", and I add and entry in
> "/var/lib/jenkins/.ssh/known_hosts", e.g. "host1.machine ssh-rsa
> AADFASDGASDFA...".
>
> Whenever I build this job, the known_hosts file gets automatically edited
> with a another entry for the same key, using the IP address of the host
> already present.
>
> Normally this has not been a big deal, but I'm going to deal with a
> particular task where I really don't want to have two of every key in the
> known_hosts file.
>
> Could someone please help me find out which plugin is responsible for this?
>
> Or if possible, how to prevent this from happening?
>
> Thank you everyone!
>
> --
> Ed
>
> --
> 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.
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to