title: Configuring local git with Jenkins
body: <p>In our org we have locally hosted git. And for my project i need to implement CI with the help of jenkins. I know configuring jenkins with GitHub but not sure configuring it with local git.</p>
  
  <p>In <code>Repository URL</code> what should i have to provide? </p>
  
  <p>after running <code>git remote show origin</code></p>
  
  <p>command in my repository i got something like below</p>
  
  <pre><code>WARNING: previous mirror push of repo 'OPT' to host 'tregit1' failed, status is:
  2017-06-16.19:28:39     31417   ssh: connect to host 10.9.100.31 port 22: No route to host
  2017-06-16.19:28:39     31417   fatal: Could not read from remote repository.
  2017-06-16.19:28:39     31417
  2017-06-16.19:28:39     31417   Please make sure you have the correct access rights
  2017-06-16.19:28:39     31417   and the repository exists.
  ----------
  * remote origin
    Fetch URL: gitbox:OPT
    Push  URL: gitbox:OPT
    HEAD branch: master
    Remote branch:
      master tracked
    Local branch configured for 'git pull':
      master merges with remote master
    Local ref configured for 'git push':
      master pushes to master (up to date)
  </code></pre>
  
  <p>and for running this <code>git remote -v</code> command the output was like</p>
  
  <pre><code>origin  gitbox:OPT (fetch)
  origin  gitbox:OPT (push)
  </code></pre>
  
  <p>I tried to give <code>Repository URL</code> as <code>gitbox:OPT</code> but Jenkins is giving below error once i typed <code>gitbox:OPT</code></p>
  
  <pre><code>Failed to connect to repository : Command "git ls-remote -h gitbox:OPT HEAD" 
  returned status code 128:
  stdout: 
  stderr: ssh: Could not resolve hostname gitbox: Temporary failure in name resolution 
  fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  </code></pre>
  
  <p>and the repository exists.</p>
  
  <p>can anyone tell me what to provide in Git URL?</p>