Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why won’t Jenkins running on my Mac connect to a local git repo?

Tags:

git

xcode

jenkins

I am trying to implement automated builds using Jenkins for my iOS projects. I added the Git plugin, but as soon as I try to put the URL for git in the git configuration for the project, it is showing the error in the screen shot below. Here Jenkins cannot clone from the repo to its workspace.

Screen Shot

like image 658
Hashim MH Avatar asked Jan 22 '13 09:01

Hashim MH


People also ask

How do I know if Jenkins is installed on 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.


1 Answers

For the "Repository URL" field it is expecting a remote repository URL, something like [email protected]:github/hubot.git. It will use that url to copy down code to run the job against.

If you just want to run a job in a particular directory where you already have the code you want to work against, then leave this section empty. You can set the directory that you want to run a job in by 1. scroll to the "Advanced Project Options" section 2. click "Advanced" 3. Check "Use custom workspace"

For one off things, this is fine, but if you use this a lot, I think you'll find it more useful to commit your code to github and have jenkins clone down a fresh copy of code for each run.

like image 66
Jeff Avatar answered Oct 17 '22 04:10

Jeff