Quantcast
Channel: BitNami Answers - latest questions
Viewing all articles
Browse latest Browse all 2052

Jenkins & Gitorous , plugin 'publish over ssh'

$
0
0

Hi!

Using the bitnami-stack, so my Gitorous and my jenkins are on the same machine ( 'server' )

Stating that fact: if any of you would know If this would make config easier ?

I am not quite sure on how to reason with myself regarding this problem. - it should be easy, I mean most of you running a CI must be facing this issue.

I have a project/repository in Gitorious called 'Testing-Jenkins'. - I have created a pair of private/public-keys for that user ( no password used )

I have created a user called 'User-Jenkins' on Gitorious, that user is a member of 'Testing-Jenkins'. I have pasted in my public key in Gitorious for user 'Testing-Jenkins'

The user 'Testing-Jenkins' is not a Unix user on none of the servers.

I have tried to fetch the code on my Ubuntu with my user ('ingi') : git init and git clone git@'host':'project'/'repos'.git that works fine.

On the 'server':

the user 'bitnami' is running the jenkins-server
the user 'git' is running gitorious-server

These were the prereqs.

I install the plugin 'Publish over SSH' via Jenkins, works fine! There is a section called 'SSH server' in jenkins - that is set on random - right/wrong ?

I know want to configure my ssh-settings via the plugin. I go to 'manage jenkins' / 'configure system'. I see that the home_directory is = /opt/bitnami/jenkins/apps/jenkins/jenkins_home

I paste in my private key ( including " -----BEGIN RSA PRIVATE KEY----- " and including the "-----END RSA PRIVATE KEY----- ), I do NOT press the 'SSH servers'.

I Save my configuration, for some reason 'jenkins' has filled the 'passphrase' with some value.

Question: am I suppose to fill in some server here ?

I paste in my public key in bitnami's .ssh-directory ( cause bitnami is running the jenkins server ) - but this should not be an issue because the private key is in jenkins-manager-setup and the public key is in project-gitorous ?

I create a new job in Jenkins called 'test' the only thing I fill in is : Source Code Management / GIT I set the repository ->

Repositories Repository URL = git@'host':'project'/'repos'.git

and I get the reply :

Failed to connect to repository : Command "/opt/bitnami/jenkins/git/bin/git ls-remote -h git@'host':'project'/'repos'.git HEAD" returned status code 128: stdout: stderr: ssh: /opt/bitnami/jenkins/common/lib/libcrypto.so.1.0.0: no version information available (required by ssh) Permission denied (publickey). fatal: The remote end hung up unexpectedly

I must have misunderstood something here regarding the SSH.

Hope that you can help me move forward here.

Best regards, Ingi


Viewing all articles
Browse latest Browse all 2052

Trending Articles