How to configure Git version control on Jenkins (on Windows)

I gather in circles for the last day, trying to get this to work. I found a lot of instructions on how I could fix this, but didn't go that far ...

  • I have no previous experience with Git, and I think many of these tutorials make the assumption that you have some basic understanding of Git
  • Many Windows reference books say that Jenkins works as a system user - this is not the case for me, I just dropped WAR on Tomcat and started it.

What I've done:

  • I installed the Git Jenkins plugin (and updated some of my plugin dependencies).
  • I started following the “instructions” on the plugin page (and was very confused and feel that maybe some steps are irrelevant for me).
  • Let's start with the steps below here - I crash pretty soon when it asks me to set the Jenkins path to cmd / git.cmd (I only have cmd / git.exe in this directory). However, I continue to struggle until he starts talking about SSH keys and the system user, so I have no problems with users that I don’t think.
  • I looked at Git password caching (described here ), but the cached credentials are still timeout, which is not ideal for a Jenkins user.
  • I tried to speed up with Git and access the protocols using this guide .

Current Errors:

, , , Jenkins Git :

Cloning repository https://git.company.local/scm/project.git
git --version
git version 1.8.4.msysgit.0
ERROR: Error cloning remote repo 'origin' : Could not clone https://git.company.local/scm/project.git
hudson.plugins.git.GitException: Could not clone https://git.company.local/scm/project.git
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:285)
    ...
Caused by: hudson.plugins.git.GitException: Failed to connect to https://git.company.local/scm/project.git (status = 401)
    ...
    ... 16 more
Trying next repository
ERROR: Could not clone repository
java.io.IOException: Could not clone

:

Git Stash https. , SSH. , Jenkins , SCM, .

, Jenkins Git , URL-.

?

+4

All Articles