title: Run Jenkins' Cygwin script as user
body: <p>I have Jenkins running on Windows, and I have a build that works fine under CygWin <code>bash</code> from the CygWin terminal, so I now want to automate it. However, using this script:</p>
  
  <pre><code>#!C:\cygwin\bin\bash.exe
  whoami
  make
  </code></pre>
  
  <p>The system reports me as <code>nt authority\system</code>, not the <code>ken</code> that I get when using an interactive shell. Is there an easy way to persuade Jenkins or CygWin to run as me?</p>