Jenkins doesn't stop after Git clone

We are setting up a Jenkins server, and are trying to configure our first project.

The first step was to clone the private repository from GitHub, which now apparently works. At least we don’t get any SSH errors any longer, mainly thanks to this article.

Now we have not yet configured and build steps or post-build steps, but we would assume Jenkins to clone the git repository, and then stop (with success).

Unfortunately, this is NOT what happens. Instead Jenkins just keeps working and working and working, infinitely … when you cancel the job and take a look at the log file, everything looks fine, except for the note that the user cancelled the job.

This is the log:

Started by user John Doe
Building in workspace C:\Program Files (x86)\Jenkins\workspace\FooProject
Checkout:FooProject / C:\Program Files (x86)\Jenkins\workspace\FooProject - …
  … hudson.remoting.LocalChannel@1daf314
Using strategy: Default
Fetching changes from 1 remote Git repository
Fetching upstream changes from origin
Build was aborted
Aborted by John Doe
Finished: ABORTED

We are using Git 1.8.4, run on Windows, and use the git.exe file (as the gitk.cmd did not work, but raised an error about leaking a child process).

Any idea of what might be wrong?

  • what permissions should jenkins have to execute shell-commands without being insecure?
  • Jenkins slave jobs failing on “Unexpected termination of channel”
  • SonarQube error while analyzing code with binary literals
  • Getting exception while configuring the maven project in jenkins
  • hudson.plugins.git.GitSCM.determineRevisionToBuild
  • Stop mvn release triggering repeat Jenkins builds
  • Jenkins Plugin failure error
  • How can I output from java code to the Jenkins console?
  • One Solution collect form web for “Jenkins doesn't stop after Git clone”

    Okay, we’ve found the issue: In the system-wide environment variables there is a variable called GIT_SSL, which pointed to TortoiseSVN’s plink.exe which was obviously wrong.

    Once we changed that to the ssh.exe provided by MSysGit, everything works as expected 🙂

    Git Baby is a git and github fan, let's start git clone.