title: Authentication error configuring Jenkins to work with Git Bitbucket repo
body: <p>I am trying to configure Jenkins in a Windows 7 environment to work with Git repository on Bitbucket, but when I try to do a build - I get the error below.</p>
  
  <p>This is the Repository URL I am using: </p>
  
  <pre><code>https://&lt;MY_ID&gt;:&lt;MY_PASSWORD&gt;@bitbucket.org/&lt;MY_ID&gt;/&lt;MY_REPO_NAME&gt;.git
  </code></pre>
  
  <p>Not sure if I need to generate keys for Jenkins-Bitbucket, if yes, can anyone please provide detailed instructions on how to do that for Windows?</p>
  
  <pre><code>Started by user anonymous
  Building in workspace C:\Users\&lt;MY_NAME&gt;\.jenkins\workspace\&lt;MY_PROJECT&gt;
  Fetching changes from the remote Git repository
  Fetching upstream changes from https://&lt;MY_ID&gt;@bitbucket.org/&lt;MY_ID&gt;/&lt;MY_REPO_NAME&gt;.git
  FATAL: Failed to fetch from https://&lt;MY_ID&gt;@bitbucket.org/&lt;MY_ID&gt;/&lt;MY_REPO_NAME&gt;.git
  hudson.plugins.git.GitException: Failed to fetch from https://&lt;MY_ID&gt;@bitbucket.org/&lt;MY_ID&gt;/&lt;MY_REPO_NAME&gt;.git
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:612)
      at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:836)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:861)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1414)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:561)
      at hudson.model.Run.execute(Run.java:1678)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:231)
  Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress https://&lt;MY_ID&gt;@bitbucket.org/&lt;MY_ID&gt;/&lt;MY_REPO_NAME&gt;.git +refs/heads/*:refs/remotes/&lt;MY_ID&gt;/*" returned status code 128:
  stdout: 
  stderr: fatal: Authentication failed for 'https://&lt;MY_ID&gt;@bitbucket.org/&lt;MY_ID&gt;/&lt;MY_REPO_NAME&gt;.git/'
  
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1098)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:984)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:68)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:217)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.fetch(CliGitAPIImpl.java:223)
      at hudson.plugins.git.GitAPI.fetch(GitAPI.java:229)
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:610)
      ... 10 more
  </code></pre>