threads / discuss / 40834

Local git repository url

Subject: Local git repository url

## tl;dr

3 messages between Nov 19, 2015 and Nov 19, 2015.

replies: 2people: 3as markdown or json

Vambara, JayaPrakash (Infosys)· Nov 19, 2015, 10:48 UTC · lore
Hi Team,
I am trying to setup a local git repository and manage it from local Jenkins set-up. So, both Jenkins and git are on my local desktop.
However, I am trying to give the Repository URL but with no luck.
My repository is in D drive in location D:\Git-Try
I tried to configure this Repository URL as --- file:///d/Git-Try  also file:///D:\Git-Try , but was not successful.
Can you please let me know what should be the Repository URL.
I have created the db in above location, pushed few files and commited them as well.

Thanks and Regards, V. JayaPrakash +91 9573457665

This e-mail and any files transmitted with it are confidential and may be protected by legal privilege. If you are not the intended recipient, please notify the sender and delete the e-mail from your system. This e-mail has been scanned for malicious content but the internet is inherently insecure and EDF Energy plc cannot accept any liability for the integrity of this message or its attachments. No employee or agent of EDF Energy plc or any related company is authorised to conclude any binding agreement on behalf of EDF Energy plc or any related company by e-mail.

All e-mails sent and received by EDF Energy plc are monitored to ensure compliance with the company's information security policy. Executable and script files are not permitted through the EDF Energy plc mail gateway. EDF Energy does not accept or send mails above 30 Mb in size.

EDF Energy plc Registered in England and Wales No. 2366852 Registered Office: 40 Grosvenor Place, London SW1X 7EN

Konstantin Khomoutov· Nov 19, 2015, 11:06 UTC · re: Vambara, JayaPrakash (Infosys) · lore

Re: Local git repository url

On Thu, 19 Nov 2015 10:48:51 +0000 "Vambara, JayaPrakash (Infosys)" <JayaPrakash.Vambara@edfenergy.com> wrote:

Show 14 quoted lines
> I am trying to setup a local git repository and manage it from local
> Jenkins set-up. So, both Jenkins and git are on my local desktop.
> 
> However, I am trying to give the Repository URL but with no luck.
> 
> My repository is in D drive in location D:\Git-Try
> 
> I tried to configure this Repository URL as --- file:///d/Git-Try
>  also file:///D:\Git-Try , but was not successful.
> 
> Can you please let me know what should be the Repository URL.
> 
> I have created the db in above location, pushed few files and
> commited them as well.
Try D:/Git-test first.

Otherwise it might heavily depend on how Jenkins interprets those URLs and whether it even uses stock Git to access the repository (and not something else like JGit).

To first rule out an issue with Jenkins you might just try cloning that Git repo (local to local -- Git is fine with it). Once you figure out an URL which works for native Git (I assume you're talking about Git for Windows), you can try to stick it to Jenkins and see it it works.

Jacob Keller· Nov 19, 2015, 22:26 UTC · re: Konstantin Khomoutov · lore

Re: Local git repository url

On Thu, Nov 19, 2015 at 3:06 AM, Konstantin Khomoutov <kostix+git@007spb.ru> wrote:

Show 25 quoted lines
> On Thu, 19 Nov 2015 10:48:51 +0000
> "Vambara, JayaPrakash (Infosys)" <JayaPrakash.Vambara@edfenergy.com>
> wrote:
>
>> I am trying to setup a local git repository and manage it from local
>> Jenkins set-up. So, both Jenkins and git are on my local desktop.
>>
>> However, I am trying to give the Repository URL but with no luck.
>>
>> My repository is in D drive in location D:\Git-Try
>>
>> I tried to configure this Repository URL as --- file:///d/Git-Try
>>  also file:///D:\Git-Try , but was not successful.
>>
>> Can you please let me know what should be the Repository URL.
>>
>> I have created the db in above location, pushed few files and
>> commited them as well.
>
> Try D:/Git-test first.
>
> Otherwise it might heavily depend on how Jenkins interprets those URLs
> and whether it even uses stock Git to access the repository (and not
> something else like JGit).
>

Jenkins Git plugin uses Git-for-Windows CLI by default. You should be safe using any URL which works for git CLI locally. If not, I suggest filing a bug against the Jenkins git plugin to help ensure it gets fixed :)

Regards, Jake

← back to recent threads