Pipeline Global Library repository access

167 views
Skip to first unread message

Jonathan Hodgson

unread,
May 24, 2016, 8:56:40 AM5/24/16
to Jenkins Users
Hi,

I appear to have Jenkin's ssh server set up correctly, and can connect to it and run who-am-i as on this page


whereupon it responds with

Authenticated as: Jon
Authorities:
  authenticated

But when I try to clone the workflowlibs git repository, as in the "Accessing repository" section here..


I get 

hudson.AbortException: No such repository exists:/workflowlibs.git

What am I missing? The "pipeline: shared groovy libraries" plugin is installed, is there a step I have to do to create the repository on the server?

regards

Jon


Eric Pyle

unread,
May 24, 2016, 9:30:30 AM5/24/16
to jenkins...@googlegroups.com

It may be that you need to specify workflowLibs (note capital "L").

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5454c77e-38dd-473e-8e1b-316e5be78493%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jonathan Hodgson

unread,
May 24, 2016, 11:01:15 AM5/24/16
to Jenkins Users
Well, in my best Homer Simpson voice..

"Doh!"

I had it right on my windows machine (more on this in a moment), but when I tried switching to a linux one (since instructions for using ssh tend to be geared towards Linuz/Unix systems) I missed the capital L, and by that point I wasn't looking for anything quite that obvious!

Thanks for that.

So now on Linux I seem to get a successful clone, I get

warning: remote HEAD refers to nonexistent ref, unable to checkout.

Which I'm guessing is just because it's a completely empty repository, as mentioned i the docs?

So a partial success, but when I try on windows (using either tortoisegit or gitbash), I get

fatal: could not fetch refs from ssh://

It's finding the repository now (I checked by intentionally using the wrong name, and the message is different), and I can successfully do the who-am-i  using ssh inside git-bash.

The issue may be obvious to many people, but I'm primarily a mercurial user, not a git one.

regards

Jon

Jonathan Hodgson

unread,
May 25, 2016, 7:22:35 AM5/25/16
to Jenkins Users
For the record, once I had committed and pushed from the Linux machine, so the repository was no longer empty, I found I could clone to the windows machine.

So the issue was it being an empty repo, but why cloning it worked on Linux, but not on Windows, is still a mystery to me.
Reply all
Reply to author
Forward
0 new messages