Cloning workflowLibs.git with ssh

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Cloning workflowLibs.git with ssh

Sverre Moe-2
  • ssh://USERNAME@server:PORT/workflowLibs.git through Jenkins SSH
  • http://LOCATION/workflowLibs.git (when your Jenkins app is located on the url http://LOCATION/). As noted in 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://[hidden email]: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 [hidden email].
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 | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Cloning workflowLibs.git with ssh

Kohsuke Kawaguchi
Administrator
You should use your user name on Jenkins. You'll also need to register your public key on Jenkins. See http://LOCATION/me/configure

On Tue, Jun 28, 2016 at 3:27 AM Sverre Moe <[hidden email]> wrote:
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://[hidden email]: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 [hidden email].
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.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAN4CQ4xHd0_Y2WLAPLp%2BfgAzAV13se_aaASX20MTAhrRSvQdbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Cloning workflowLibs.git with ssh

Sverre Moe-2
Yes, that worked. Thanks.

onsdag 29. juni 2016 00.14.07 UTC+2 skrev Kohsuke Kawaguchi følgende:
You should use your user name on Jenkins. You'll also need to register your public key on Jenkins. See <a href="http://LOCATION/me/configure" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2FLOCATION%2Fme%2Fconfigure\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFAMEpfOQEbCD_c-p9GdR1Q1lotyQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2FLOCATION%2Fme%2Fconfigure\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFAMEpfOQEbCD_c-p9GdR1Q1lotyQ&#39;;return true;">http://LOCATION/me/configure

On Tue, Jun 28, 2016 at 3:27 AM Sverre Moe <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="BgZe3kv-AwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">sverr...@...> wrote:
  • ssh://USERNAME@server:PORT/workflowLibs.git through <a href="https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+SSH" style="color:rgb(64,120,192);background-color:transparent" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwiki.jenkins-ci.org%2Fdisplay%2FJENKINS%2FJenkins%2BSSH\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEomY_p3MEEiBug7P_XdRRnsI2HNg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwiki.jenkins-ci.org%2Fdisplay%2FJENKINS%2FJenkins%2BSSH\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEomY_p3MEEiBug7P_XdRRnsI2HNg&#39;;return true;">Jenkins SSH
  • <a href="http://LOCATION/workflowLibs.git" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2FLOCATION%2FworkflowLibs.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFqp3b8JdTV4_vS5Tu2YqqW8FuKQw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2FLOCATION%2FworkflowLibs.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFqp3b8JdTV4_vS5Tu2YqqW8FuKQw&#39;;return true;">http://LOCATION/workflowLibs.git (when your Jenkins app is located on the url <a href="http://LOCATION/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2FLOCATION%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGp1-Q3NpCR06d3oyStM2EgU5BsZg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2FLOCATION%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGp1-Q3NpCR06d3oyStM2EgU5BsZg&#39;;return true;">http://LOCATION/). As noted in <a href="https://issues.jenkins-ci.org/browse/JENKINS-26537" style="color:rgb(64,120,192);background-color:transparent" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-26537\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHeWk_x8RtuXiYpoTHBivKSVZDHNQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-26537\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHeWk_x8RtuXiYpoTHBivKSVZDHNQ&#39;;return true;">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://[hidden email].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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="BgZe3kv-AwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/534e6cde-aaa0-4d58-9279-7d89d4dccd57%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/534e6cde-aaa0-4d58-9279-7d89d4dccd57%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/534e6cde-aaa0-4d58-9279-7d89d4dccd57%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/534e6cde-aaa0-4d58-9279-7d89d4dccd57%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ea92e133-a87e-4ffb-acf7-51286d143edd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Cloning workflowLibs.git with ssh

Kohsuke Kawaguchi
Administrator
I'll improve the docs. I also want to look into why authentication over HTTPS is not supported. That is a painful bug now that we set up authentication for new instances more aggressively for obvious reasons...

On Tue, Jun 28, 2016 at 11:45 PM Sverre Moe <[hidden email]> wrote:
Yes, that worked. Thanks.


onsdag 29. juni 2016 00.14.07 UTC+2 skrev Kohsuke Kawaguchi følgende:
You should use your user name on Jenkins. You'll also need to register your public key on Jenkins. See http://LOCATION/me/configure

On Tue, Jun 28, 2016 at 3:27 AM Sverre Moe <[hidden email]> wrote:
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://[hidden email]: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 [hidden email].

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ea92e133-a87e-4ffb-acf7-51286d143edd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAN4CQ4xcqPz5edDgV4mX0V8LtpmHXjwbdT-JuHZBrTG7SVqKvg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...