Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-28282

CVS+SSH+different port fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • cvs-plugin
    • None
    • jenkins-1.612-1.1.noarch

      I've set up jenkins to connect to

      CVSROOT=:ext:anoncvs@anoncvs.NetBSD.org:/cvsroot
      CVS_RSH=/usr/bin/ssh
      BRANCH=HEAD
      MODULES="src xsrc"
      

      now starting build jenkins generates a command line:

      cvs -q -r HEAD -P src xsrc
      

      and then fails with:

      Gestartet durch Benutzer tps
      Baue in Arbeitsbereich /var/lib/jenkins/jobs/netbsd_current/workspace
      cvs checkout -P -N -D 07 May 2015 13:28:36 +0200 src 
      ERROR: CVS Authentication failed: null
      org.netbeans.lib.cvsclient.connection.AuthenticationException: SSH connection failed.
      	at org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:141)
      	at org.netbeans.lib.cvsclient.Client$1.run(Client.java:374)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: sct-muc (Datei oder Verzeichnis nicht gefunden)
      	at com.jcraft.jsch.KeyPair.load(KeyPair.java:524)
      	at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:40)
      	at com.jcraft.jsch.JSch.addIdentity(JSch.java:389)
      	at com.jcraft.jsch.JSch.addIdentity(JSch.java:370)
      	at org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:135)
      	... 2 more
      Caused by: java.io.FileNotFoundException: sct-muc (Datei oder Verzeichnis nicht gefunden)
      	at java.io.FileInputStream.open0(Native Method)
      	at java.io.FileInputStream.open(FileInputStream.java:195)
      	at java.io.FileInputStream.<init>(FileInputStream.java:138)
      	at java.io.FileInputStream.<init>(FileInputStream.java:93)
      	at com.jcraft.jsch.Util.fromFile(Util.java:492)
      	at com.jcraft.jsch.KeyPair.load(KeyPair.java:521)
      	... 6 more
      ERROR: Cvs task failed
      Finished: FAILURE
      

      jenkins seems not being able to open a file. But what file it tries to open and where??? Since some mentioned its searching for ssh-key files I've tried these. But none of the locations seems to work:

      • /var/lib/jenkins/.ssh/
      • /home/<user>/.ssh/
      • /var/lib/jenkins/<user>/
      • /var/lib/jenkins/<user>/.ssh/

      would be nice if jenkins could exaust where it is searching for what file.

            Unassigned Unassigned
            tps800 Thomas Schweikle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: