That's the Jenkins home directory not the user home direcory of the user account that jenkins is running as
On 24 June 2014 15:18, Hohl, Gerrit <[email protected]> wrote: > Hello Curtis, > > thanks for your reply. > > The Jenkins configuration says that C:\.jenkins is the home directory. > So I created a ".ssh" folder there and places the know_hosts in it. > But it didn't work. > > I also started the build enabling the verbose output, like you wrote. > That is really very verbose. Also the build process stopped very early, I > got a 7 GB log file. ;) > Unfortunately I don't see any path there. Only that the uses the proper ID > of the server and also uses the credentials which have been configured for > it. That's all. > > I go for your suggestion about creating an account at codehaus. I will > create a bug ticket there. > > Thanks again for your mail. :) > > Regards, > Gerrit > > > -----Ursprüngliche Nachricht----- > Von: [email protected] [mailto:[email protected]] Im Auftrag > von Curtis Rueden > Gesendet: Dienstag, 24. Juni 2014 14:36 > An: Maven Users List > Betreff: Re: site-deploy using wagon-ssh: User input needed > > Hi Gerrit, > > > I see in the Jenkins Build log that wagon-ssh keeps asking if it > > should trust the connection by showing the SSH RSA fingerprint. > > Maybe your Jenkins's %USER_HOME% is simply not set as you expect? > Apparently [2], Jenkins on Windows defaults to > C:\Users\[MY_USER]\.jenkins, so maybe you need to put your known_hosts in > C:\Users\[MY_USER]\.jenkins\.ssh\known_hosts in order for it to run > properly with Jenkins? > > > The easiest way would be if I would be able to specify the path of the > > known_hosts file in the settings.xml. > > Looking at the relevant maven-wagon source [1], it is clear there is a > bunch of logic for managing a KnownHostsProvider (which controls where the > known_hosts data comes from). So I would be very surprised if this was not > exposed at the Maven level -- i.e., if there was not a way to configure > this in the POM somehow. > > > Unfortunately wagon-ssh also doesn't show at which location it tries > > to open the known_hosts file. > > Did you try with "mvn -X"? That is verbose/debug mode. If it still doesn't > echo the path, please file a JIRA issue for it: > https://jira.codehaus.org/browse/WAGON (create account at > https://xircles.codehaus.org/signup) > > > Does no one of you use that wagon-ssh? > > My group uses wagon-webdav-jackrabbit for artifact deploys, and we aren't > deploying our Maven sites properly yet. > > Regards, > Curtis > > [1] > > https://github.com/apache/maven-wagon/blob/41336732524e33fa3fdc99f07b6add013b23dfa7/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/jsch/AbstractJschWagon.java#L89 > > [2] http://stackoverflow.com/q/12689139 > > > On Tue, Jun 24, 2014 at 6:42 AM, Hohl, Gerrit <[email protected]> wrote: > > > Hello everyone, > > > > I still having this problem. Does no one of you use that wagon-ssh? > > Don't you upload the Maven report on a web server? Or do you use > > simply other methods? If there is a better method I would be happy to > > know that. :) > > > > Regards, > > Gerrit > > > > > > -----Ursprüngliche Nachricht----- > > Von: Hohl, Gerrit [mailto:[email protected]] > > Gesendet: Donnerstag, 12. Juni 2014 17:40 > > An: Maven Users List > > Betreff: AW: site-deploy using wagon-ssh: User input needed > > > > Hello everyone, :) > > > > okay, I tried a different approach: > > > > Instead of that <configuration> section in the settings.xml I copied > > my local know_hosts file from > > C:\Users\[MY_USER]\.ssh\known_hosts > > to the server: > > C:\Windows\system32\config\.ssh\known_hosts > > I read in the Internet that this folder is the folder of the system > > account which is used e.g. by Tomcat. > > And as Jenkins and Maven are executed by Tomcat, they should work on > > the same folder. > > > > Unfortunately I didn't work: I see in the Jenkins Build log that > > wagon-ssh keeps asking if it should trust the connection by showing > > the SSH RSA fingerprint. Unfortunately wagon-ssh also doesn't show at > > which location it tries to open the known_hosts file. > > > > The easiest way would be if I would be able to specify the path of the > > known_hosts file in the settings.xml. But I haven't found anything > > about a configuration parameter like that. > > > > Regards, > > Gerrit > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >
