Here is my build error (it has never worked, I am starting off with jenkins) on my project 'JenkinsCD':
-------------------------------
Started by user anonymous Building in workspace /var/lib/jenkins/jobs/JenkinsCD/workspace cvs checkout -P -D 14 Aug 2015 10:16:44 -0500 -d workspace origin/master 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: /var/lib/jenkins/.ssh/id_rsa (Permission denied) 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: /var/lib/jenkins/.ssh/id_rsa (Permission denied) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:146) at java.io.FileInputStream.<init>(FileInputStream.java:101) 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
----------------------------
I installed jenkins yesterday and git is already installed (pushing and pulling, version is 1.8.3.1) and I can view jenkins from browser. I am SSH-ing into the server using a username and password and I have created the id_rsa and id_rsa.pub inside of the .ssh folder in var/lib/jenkins/.ssh ; however I required sudo access to create the id_rsa and id_rsa.pub files because I have sudo level but not the specific root account access. Permissions for the two files in .ssh folder are:
-rw-------. 1 root root 1675 Aug 13 18:13 id_rsa
-rw-r--r--. 1 root root 394 Aug 13 18:13 id_rsa.pub
This appears to be typically of these keys but I believe there may be issues with permissions (I mean look at the stack trace from the build error!) and also I have heard things about creating a jenkins user. Also the git repository is hosted on bitbucket but a local clone of the repo exists as well so if anyone has any advice whatsoever or thinks they know what the problem is I would greatly appreciate any help that you can offer, thanks :) --
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/6cee415e-e3b9-4da1-a05e-6619c1035ad5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
according to log your job is setup with CVS as SCM
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/20f9859e-aa78-4ecd-873a-2c3121131a01%40googlegroups.com.