- ssh://USERNAME@server:PORT/workflowLibs.git through Jenkins SSH 
   <https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+SSH>
   - http://LOCATION/workflowLibs.git (when your Jenkins app is located on 
   the url http://LOCATION/). As noted in JENKINS-26537 
   <https://issues.jenkins-ci.org/browse/JENKINS-26537>, this mode will not 
   currently work in an authenticated Jenkins instance.

Since the jenkins server is authenticated and using https I have to use 
ssh:// to clone the workflowLibs.git repository.
I have configured jenkins with SSHD and enabled it on port number xxxxx.
I am not sure which USERNAME to use.

I tried setting a password for the jenkins user, but it wouldn't work 
cloning workflowLibs.git with that user.
git clone ssh://jenk...@jenkins.company.com:xxxxx/workflowLibs.git

Cloning into 'workflowLibs'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

For now I have initialized the repository directly on the 
server:/var/lib/jenkins/workflow-libs and manually transferred the files 
over. It is not a method I would rely on, but it work for now to get my 
build scripts in CPS global lib.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/534e6cde-aaa0-4d58-9279-7d89d4dccd57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to