title: (Nearly) Identical Jenkins projects, one works, one fails
body: <p>I have two Jenkins projects that are identical except for the repo being used.  Jenkins is running an ant build for both and using different targets.</p>
  
  <p>The two targets do literally the same thing except reference a different branch.  One project works and the other errors.</p>
  
  <p>The failing project errors with this:</p>
  
  <pre><code> [exec] bash: /dev/tty: No such device or address
   [exec] error: failed to execute prompt script (exit code 1)
   [exec] fatal: could not read Password for 'https://****@git.ersp.net': No error
   [exec] Result: 128
  </code></pre>
  
  <p>I've looked this issue up and what I can find appears related to other utility tools being used such as Atom, Winpty, etc..  We are <strong>not</strong> using these but we <strong>are</strong> using bash.</p>
  
  <p>It seems the issue stems from bash not being able to ask for a username and password however these are being supplied by Jenkins (both projects are the same).</p>
  
  <p>I updated my credentials in Jenkins just to be sure that was not the issue.  The first project <strong>continues to pass</strong> and the <strong>second continues to fail</strong> and they use the same credentials.</p>
  
  <p><strong>Ant Targets</strong></p>
  
  <pre><code>&lt;!-- RELEASE GIT --&gt;
  &lt;target name="update-release-git"&gt;      
      &lt;exec executable="C:\Program Files\Git\cmd\git.exe"&gt;
          &lt;arg value="-C" /&gt;
          &lt;arg value="${testing-release}" /&gt;          
          &lt;arg value="checkout" /&gt;
          &lt;arg value="${BRANCH}" /&gt;
      &lt;/exec&gt; 
      &lt;exec executable="C:\Program Files\Git\cmd\git.exe"&gt;
          &lt;arg value="-C" /&gt;
          &lt;arg value="${testing-release}" /&gt;          
          &lt;arg value="fetch" /&gt;
      &lt;/exec&gt; 
  &lt;/target&gt;
  
  &lt;!-- EPIC1 GIT --&gt;
  &lt;target name="update-epic1"&gt;
      &lt;exec executable="C:\Program Files\Git\cmd\git.exe"&gt;
          &lt;arg value="-C" /&gt;
          &lt;arg value="${testing-epic1}" /&gt;            
          &lt;arg value="checkout" /&gt;
          &lt;arg value="${BRANCH}" /&gt;
      &lt;/exec&gt; 
      &lt;exec executable="C:\Program Files\Git\cmd\git.exe"&gt;
          &lt;arg value="-C" /&gt;
          &lt;arg value="${testing-epic1}" /&gt;            
          &lt;arg value="fetch" /&gt;
      &lt;/exec&gt; 
  &lt;/target&gt;
  </code></pre>
  
  <p><strong>EPIC1</strong> works while <strong>RELEASE</strong> does not.  They are both clones of the same repo, they are just using different branches.</p>
  
  <p>Any help would be appreciated, thanks!</p>
  
  <p><strong>Edit</strong>
  To clarify, the jobs are meant to be run independently.</p>
  
  <p>Credential information is passed via Jenkins Credentials Manager.  Under <strong>Source Code Management > Git</strong>  you pick the repo url and then the credentials are a select option of the available credentials already added to Jenkins.</p>