Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins linking to my local git repository

I'm new to Jenkins and git too. I created a remote repository at github.com and made a local copy of it.
Then I want to link it through Jenkins. I installed needed plugins for git integration, but I don't know what my local Repository URL is to set it when configuring the new project. Could someone help me where to find it?

like image 857
Zhivko Draganov Avatar asked May 08 '12 12:05

Zhivko Draganov


People also ask

How do you integrate Git with Jenkins?

How does Jenkins integrate with Git? Go to Jenkins dashboard, click on “Manage Jenkins.” Now follow these steps- Manage Plugins -> 'Available' tab -> Enter Git in search bar and filter -> Install required plugin. After the installation, all you need to do is click on “Configure System” and go to the 'GitHub' section.

Can we use Jenkins to pull code from local repository?

What it needs is, a git clone URL, so that Jenkins can clone/pull that repo into it's job's workspace to work upon. Since you have git repo hosted on your local and not on any server, what you need is a . git clone URL of you local file system.


1 Answers

In this case, the URL should start with the file protocol followed by the path to the repository. E.g., file:///home/rbkcbeqc/dev/git/gitsandbox.

like image 182
Balakrishnan Ramaswamy Avatar answered Sep 19 '22 22:09

Balakrishnan Ramaswamy