title: How to reconnect to my git repository on GitLab from NetBeans IDE 8 and Jenkins?
body: <p>Something seems to have gone wrong with my NetBeans git set-up. I am using NetBeans IDE 8.0.1 on Windows 8.1 and I have a private git repository hosted on GitLab.com. But ever since GitLab <a href="https://about.gitlab.com/2014/09/24/gitlab-7-dot-3-dot-1-released/" rel="nofollow">updated to version 7.3.1</a> I am unable to connect to the git repository from NetBeans. It does not matter if I fetch, pull or push, I get the same response: <em>"Cannot connect to the remote repository at https://gitlab.com/&lt;group-name&gt;/&lt;project-name&gt;.git"</em> (group name and project name omitted for privacy reasons)</p>
  
  <p>I found similar (older) problems, but I don't think it is the same problem. I think my problem is related to the release of GitLab Community Edition 7.3.1, though I cannot see what causes it exactly.</p>
  
  <p>From <a href="https://netbeans.org/bugzilla/show_bug.cgi?id=232612" rel="nofollow">this bug report on NetBeans community</a> someone suggests clicking <em>"passive mode"</em> would solve the issue, but I don't know where to find this passive mode. On googling passive mode I think it has something to do with FTP, but I'm using the https option and not ftps option for connecting to the git repository, so I don't think this really applies to my situation (correct me if I'm wrong).</p>
  
  <p><a href="https://netbeans.org/bugzilla/show_bug.cgi?id=221557" rel="nofollow">This other bug report on NetBeans community</a> has a suggestion that I need to add the following line to my git config file:</p>
  
  <pre><code>[http]
      sslVerify=false
  </code></pre>
  
  <p>I added it both to my <em>.git/config</em> file in my project folder and to my <em>.gitconfig</em> file in my user folder, but this did not solve the problem.</p>
  
  <p>Also cloning the git repository again from GitLab.com did not solve the issue. In fact, I get the same error response (as mentioned above) when I try to clone.</p>
  
  <p>I can still connect to git and do all my git commands if I use Git Bash for Windows. So I'll use that for now, but I would rather also be able to use the Git Repository Browser in NetBeans.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I am also running Jenkins with automatic builds and testing, which is also connected to the same git repository on GitLab.com. I had not checked its log for a while, but it also fails to fetch. So the problem is not limited to NetBeans alone since Jenkins is also affected.</p>
  
  <p>Here is the output of Jenkins's build attempt:</p>
  
  <pre><code>Started by user Pieterjan van Gastel
  Building in workspace C:\Program Files (x86)\Jenkins\workspace\&lt;project-name&gt;
   &gt; C:\Program Files (x86)\Git\bin\git.exe rev-parse --is-inside-work-tree
  Fetching changes from the remote Git repository
   &gt; C:\Program Files (x86)\Git\bin\git.exe config remote.origin.url https://gitlab.com/&lt;group-name&gt;/&lt;project-name&gt;
  Fetching upstream changes from https://gitlab.com/&lt;group-name&gt;/&lt;project-name&gt;
   &gt; C:\Program Files (x86)\Git\bin\git.exe --version
  FATAL: Failed to fetch from https://gitlab.com/&lt;group-name&gt;/&lt;project-name&gt;
  hudson.plugins.git.GitException: Failed to fetch from https://gitlab.com/&lt;group-name&gt;/&lt;project-name&gt;
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:622)
      at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:854)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:879)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1254)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:624)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530)
      at hudson.model.Run.execute(Run.java:1732)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:234)
  Caused by: hudson.plugins.git.GitException: Received fatal alert: handshake_failure
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkCredentials(CliGitAPIImpl.java:2115)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1151)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:87)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:265)
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:620)
      ... 10 more
  </code></pre>
  
  <p>Again, group name and project name omitted for privacy reasons.</p>
  
  <p>I would like to have my unit tests executed automatically, so it would be nice to know what changed exactly and how to fix it.</p>
  
  <p>This issue is now also filed as an issue <a href="https://netbeans.org/bugzilla/show_bug.cgi?id=247761" rel="nofollow">on NetBeans.org</a> and <a href="https://groups.google.com/forum/#!topic/gitlabhq/1kTanU56ntE" rel="nofollow">on the GitLab Mailing List</a>.</p>