title: Attempting to use scm:tag in a Jenkins job for a Git repository that requires a username/password
body: <p>I am attempting to configure a Jenkins/Maven/Git release build job as described by Axel Fontaine (<a href="http://axelfontaine.com/blog/final-nail.html" rel="noreferrer">http://axelfontaine.com/blog/final-nail.html</a>). I made the additions to my POM as he described, and configured my Jenkins job accordingly.</p>
  
  <p>In the Source Code Management section I entered the Repository URL for our internally hosted instance of Stash (which requires a username and password - SSH keys are not an option): <code>https://stash.mycompany.com/scm/st_proj/my_repo.git</code></p>
  
  <p>I provided the username/password credentials.</p>
  
  <p>As in the blog post I created a Maven pre-step that has the goals <code>versions:set -DnewVersion=$BUILD_NUMBER</code>.</p>
  
  <p>And also as in the blog post I set the goals for the build to <code>deploy scm:tag</code>.</p>
  
  <p>When the job executes I get the following error.</p>
  
  <pre><code>[ERROR] Provider message:
  [ERROR] The git-push command failed.
  [ERROR] Command output:
  [ERROR]
  (gnome-ssh-askpass:32706):  Gtk-WARNING **: cannot open display:
  error: unable to read askpass response from '/usr/libexec/openssh/gnome-ssh-askpass'
  fatal: could not read Username for 'https://stash.mycompany.com': No such device or address
  </code></pre>
  
  <p>I realize this is because the Git command is attempting to prompt me for a username and password, but since this is run as a Jenkins' job there is no display for it to send the prompt to.</p>
  
  <p><strong>Why am I being prompted for a username and password when I have them set earlier in the job configuration?</strong> I know they are correct because they were required to clone the repository.</p>